]> www.ginac.de Git - ginac.git/commitdiff
- use initializers in exception class pole_error.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 7 Aug 2001 19:03:26 +0000 (19:03 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 7 Aug 2001 19:03:26 +0000 (19:03 +0000)
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