]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGSharedPtr.hxx
Fix rpmlint/Linux packager complaints
[simgear.git] / simgear / structure / SGSharedPtr.hxx
index cbaee0f6c3fcc3d5e75fbe052eed5a148efbf84a..c815a2fa566f94253282109ec6d5a76ce4489dad 100644 (file)
@@ -88,7 +88,7 @@ public:
   { return T::count(_ptr); }
 
   bool valid(void) const
-  { return _ptr; }
+  { return _ptr != (T*)0; }
 
   void clear()
   { put(); }
@@ -98,6 +98,8 @@ public:
 private:
   void assign(T* p)
   { get(p); put(); _ptr = p; }
+  void assignNonRef(T* p)
+  { put(); _ptr = p; }
 
   void get(const T* p) const
   { T::get(p); }