]> www.ginac.de Git - ginac.git/blobdiff - ginac/utils.cpp
- use initializers in exception class pole_error.
[ginac.git] / ginac / utils.cpp
index 75b0e84fde90946ea897b47242cc073a66f6b016..e981305a783f417cdbe65fa1ce852fcc47b0b312 100644 (file)
@@ -36,10 +36,7 @@ const int version_micro = GINACLIB_MICRO_VERSION;
 
 /** ctor for pole_error exception class. */
 pole_error::pole_error(const std::string& what_arg, int degree)
-  : domain_error(what_arg)
-{
-       deg = degree;
-}
+       : domain_error(what_arg), deg(degree) { }
 
 /** Return the degree of the pole_error exception class. */
 int pole_error::degree(void) const