]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improve methods, that returns T*
authorapo <apo@opencascade.com>
Tue, 31 May 2005 10:01:15 +0000 (10:01 +0000)
committerapo <apo@opencascade.com>
Tue, 31 May 2005 10:01:15 +0000 (10:01 +0000)
src/SUIT/SUIT_SmartPtr.h

index 0bedb2c574354598430dd1556ca1f12471b76d25..38258ba050f37c451189723d0514b5ba7c432a96 100755 (executable)
@@ -52,13 +52,10 @@ public:
 
   // getting access 
   //operator RefCount*()      { return (RefCount*)p; }
-  operator T*()               { return  p;           }
-  T& operator*()              { return *p;           }
-  const T& operator*() const  { return *p;           }
-  T* operator->()             { return  p;           }
-  const T* operator->() const { return  p;           }
-  const T* get() const        { return  p;           }
-  T* get()                    { return  p;           }
+  T& operator*() const        { return *p;           }
+  T* operator->() const       { return  p;           }
+  operator T*() const         { return  p;           }
+  T* get() const              { return  p;           }
 
   // assignment
   template<class Y> SmartPtr& operator=( const SmartPtr<Y>& y_ )