Minor sreamlining of some internal code using class lst...
authorRichard Kreckel <kreckel@ginac.de>
Mon, 18 Dec 2017 18:19:34 +0000 (19:19 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Mon, 18 Dec 2017 18:19:34 +0000 (19:19 +0100)
...without any external effect at all.

ginac/factor.cpp

index f70e41b..2c0ab8a 100644 (file)
@@ -2070,13 +2070,8 @@ static ex hensel_multivar(const ex& a, const ex& x, const vector<EvalPoint>& I,
                acand *= U[i];
        }
        if ( expand(a-acand).is_zero() ) {
-               lst res;
-               for ( size_t i=0; i<U.size(); ++i ) {
-                       res.append(U[i]);
-               }
-               return res;
+               return lst(U.begin(), U.end());
        } else {
-               lst res;
                return lst{};
        }
 }