Minor sreamlining of some internal code using class lst...
[ginac.git] / ginac / factor.cpp
index f70e41bd37ffc5ebbdbc6618af445c14d6e25608..2c0ab8a5c07b04ab37aea5a78e4e22996fab9821 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{};
        }
 }