X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fpolynomial_root.h;h=1ed82f03943b34e45680f0291c8140680378a9c7;hb=f35364fcdc6d335e3dd3a0281eeadb10c724e7dc;hp=7fda758aa5087bfbab642bdd453efd828f7ebe57;hpb=d4d94c626d5cf4766cf32781cd8088de3b5683f8;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/polynomial_root.h b/synfig-core/trunk/src/synfig/polynomial_root.h index 7fda758..1ed82f0 100644 --- a/synfig-core/trunk/src/synfig/polynomial_root.h +++ b/synfig-core/trunk/src/synfig/polynomial_root.h @@ -42,11 +42,11 @@ public: //Will maintain all lower constants void degree(unsigned int d, const T & def = (T)0) { resize(d+1,def); } - unsigned int degree()const { return size() - 1; } + unsigned int degree()const { return this->size() - 1; } const Polynomial & operator+=(const Polynomial &p) { - if(p.size() > size()) + if(p.size() > this->size()) resize(p.size(), (T)0); for(int i = 0; i < p.size(); ++i) @@ -58,7 +58,7 @@ public: const Polynomial & operator-=(const Polynomial &p) { - if(p.size() > size()) + if(p.size() > this->size()) resize(p.size(), (T)0); for(int i = 0; i < p.size(); ++i) @@ -72,7 +72,7 @@ public: { if(p.size() < 1) { - resize(0); + this->resize(0); return *this; } @@ -87,7 +87,7 @@ public: if(p.size() < 2) return *this; - resize(size() + p.degree()); + this->resize(this->size() + p.degree()); for(int i = 0; i < nc.size(); ++i) { for(int j = 1; j < p.size(); ++j)