]> www.ginac.de Git - ginac.git/blobdiff - ginac/normal.cpp
Convert some more ctors from copying to moving STL containers.
[ginac.git] / ginac / normal.cpp
index c6dc39e6b0ef1d4108a5dcfeb4628054f3b5a9f4..e30afda6b941b90b4f1ee97aa59595d2e4bb9c0a 100644 (file)
@@ -1210,7 +1210,7 @@ ex add::smod(const numeric &xi) const
        }
        GINAC_ASSERT(is_exactly_a<numeric>(overall_coeff));
        numeric coeff = GiNaC::smod(ex_to<numeric>(overall_coeff), xi);
-       return (new add(newseq,coeff))->setflag(status_flags::dynallocated);
+       return (new add(std::move(newseq), coeff))->setflag(status_flags::dynallocated);
 }
 
 ex mul::smod(const numeric &xi) const