浏览代码

More changes need to avoid clang errors

Most recent changes to shared have caused new errors in clang builds.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 年之前
父节点
当前提交
60276774cb
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      system/jlib/jscm.hpp

+ 4 - 4
system/jlib/jscm.hpp

@@ -52,7 +52,7 @@ public:
     inline Shared(const Shared<CLASS> & other)   { ptr = other.getLink(); }
     inline ~Shared()                             { ::Release(ptr); }
 
-    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { set(other.get()); return *this;  }
+    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { this->set(other.get()); return *this;  }
 
     inline CLASS * operator -> () const         { return ptr; } 
     inline operator CLASS *() const             { return ptr; } 
@@ -71,7 +71,7 @@ public:
             ::Release(temp);
         }
     }
-    inline void set(const Shared<CLASS> &other) { set(other.get()); }
+    inline void set(const Shared<CLASS> &other) { this->set(other.get()); }
     inline void setown(CLASS * _ptr)            { CLASS * temp = ptr; ptr = _ptr; ::Release(temp); }
     
 protected:
@@ -93,7 +93,7 @@ public:
     inline Owned()                              { }
     inline Owned(CLASS * _ptr) : Shared<CLASS>(_ptr)   { }
 
-    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { set(other.get()); return *this;  }
+    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { this->set(other.get()); return *this;  }
 
 private:
     inline Owned(const Shared<CLASS> & other); // Almost certainly a bug
@@ -109,7 +109,7 @@ public:
     inline Linked(CLASS * _ptr) : Shared<CLASS>(LINK(_ptr)) { }
     inline Linked(const Shared<CLASS> & other) : Shared<CLASS>(other) { }
 
-    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { set(other.get()); return *this;  }
+    inline Shared<CLASS> & operator = (const Shared<CLASS> & other) { this->set(other.get()); return *this;  }
 
 private:
     inline Linked<CLASS> & operator = (const CLASS * other);