X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpolynomial%2Fcollect_vargs.cpp;h=835869743e51b43470859b8984b3c77230974a1a;hp=c06b16ebb625363f39a69cf406c93dce574f86d2;hb=47ecb72dce5ea9c917d1e1e77863c45a8b2b1bba;hpb=1b8bcb068171ce9d5c8202ae3c76647b65c9a06d diff --git a/ginac/polynomial/collect_vargs.cpp b/ginac/polynomial/collect_vargs.cpp index c06b16eb..83586974 100644 --- a/ginac/polynomial/collect_vargs.cpp +++ b/ginac/polynomial/collect_vargs.cpp @@ -3,7 +3,7 @@ * Utility functions. */ /* - * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2016 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 @@ -155,13 +155,13 @@ ex_collect_to_ex(const ex_collect_t& ec, const exvector& vars) "expression has " << exp_vector.size() << " instead"); if (exp_vector[j] != 0) - tv.push_back(power(vars[j], exp_vector[j])); + tv.push_back(pow(vars[j], exp_vector[j])); } tv.push_back(ec[i].second); - ex tmp = (new mul(tv))->setflag(status_flags::dynallocated); + ex tmp = dynallocate(tv); ev.push_back(tmp); } - ex ret = (new add(ev))->setflag(status_flags::dynallocated); + ex ret = dynallocate(ev); return ret; }