]> www.ginac.de Git - ginac.git/blobdiff - ginac/factor.cpp
Minor sreamlining of some internal code using class lst...
[ginac.git] / ginac / factor.cpp
index 598a74454324563ba4bf1dc433205b238ff5ff19..2c0ab8a5c07b04ab37aea5a78e4e22996fab9821 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2017 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -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{};
        }
 }