Prevent compiler warnings like "there are no arguments to 'size' that depend on a...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Nov 2007 12:40:51 +0000 (12:40 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Nov 2007 12:40:51 +0000 (12:40 +0000)
git-svn-id: http://svn.voria.com/code@1130 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/polynomial_root.h

index 7fda758..1ed82f0 100644 (file)
@@ -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)