Add explicit "this->" to comply with strict C++ two-level lookup rules
authorAaron Becker <akbecker@gmail.com>
Wed, 23 Mar 2011 22:35:53 +0000 (17:35 -0500)
committerAaron Becker <akbecker@gmail.com>
Wed, 23 Mar 2011 22:35:53 +0000 (17:35 -0500)
src/libs/ck-libs/ParFUM/ParFUM_internals.h
src/libs/ck-libs/collide/collide_buffers.h
src/libs/ck-libs/fem/fem_mesh.h

index c045deb779f655891e93f5cb5722bc3d9e408d75..3a33a2bebc6bab8150ed4cd8f4ee270581903418 100644 (file)
@@ -318,7 +318,7 @@ class AllocTable2d : public BasicTable2d<T> {
       delete[] allocTable;
     }else{
       for (int r=copyRows;r<max;r++)
-       setRow(r,fill);
+          this->setRow(r,fill);
     }
     allocTable = this->table;
   }
index 3a4a5b9ecce306a7b65aab164cc9c402329d355c..73302a70b72b66daa9d1826cebd9357cce7820dd 100644 (file)
@@ -77,7 +77,7 @@ template <class T> class growableBufferT : public bufferT<T> {
   growableBufferT<T> &operator=(const growableBufferT<T> &in);
  public:
   growableBufferT<T>() :buf() {max=0;}
-  growableBufferT<T>(size_t Len) :buf(Len*sT) {set((T*)buf.getData(),Len);max=Len;}
+  growableBufferT<T>(size_t Len) :buf(Len*sT) {this->set((T*)buf.getData(),Len);max=Len;}
     
   inline int length(void) const {return super::length();}
   inline int size(void) const {return super::length();}
@@ -94,12 +94,12 @@ template <class T> class growableBufferT : public bufferT<T> {
   void empty(void) {reallocate(0);}
   void push_back(const T& v) {
     grow(length()+1);
-    at(this->getLength()++)=v;
+    this->at(this->getLength()++)=v;
   }
   //Push without checking bounds
   void push_fast(const T& v) {
     grow(length()+1);
-    at(this->getLength()++)=v;
+    this->at(this->getLength()++)=v;
   }
   void grow(int min) {
     if (min>max) {
@@ -117,7 +117,7 @@ template <class T> class growableBufferT : public bufferT<T> {
   }
   void resize(int Len) {
     buf.resize(Len*sT);
-    setData((T*)buf.getData());
+    this->setData((T*)buf.getData());
     max=Len;
   }
   void reallocate(int Len) {
index 46371556ed15750477fde7023253b503a5857b64..c5ba52dd1fdf9f216a2981c8df1a563bab8afbd1 100644 (file)
@@ -242,7 +242,7 @@ public:
                        delete[] allocTable;
                }else{
                        for (int r=copyRows;r<max;r++)
-                               setRow(r,fill);
+                               this->setRow(r,fill);
                }
                allocTable = this->table;
        }