0024489: Avoid type casts in call to Standard::Free()
[occt.git] / src / Standard / Standard_MMgrTBBalloc.hxx
index a07e7f3..3cf74cb 100644 (file)
@@ -47,12 +47,12 @@ class Standard_MMgrTBBalloc : public Standard_MMgrRoot
   Standard_EXPORT virtual Standard_Address Allocate(const Standard_Size aSize);
   
   //! Reallocate aPtr to the size aSize. 
-  //! The pointer aPtr is nullified; new pointer is returned.
-  Standard_EXPORT virtual Standard_Address Reallocate(Standard_Address& aPtr, 
-                                                     const Standard_Size aSize);
+  //! The new pointer is returned.
+  Standard_EXPORT virtual Standard_Address Reallocate (Standard_Address thePtr,
+                                                      const Standard_Size theSize);
   
-  //! Free allocated memory. The pointer is nullified.
-  Standard_EXPORT virtual void Free(Standard_Address&);
+  //! Free allocated memory
+  Standard_EXPORT virtual void Free (Standard_Address thePtr);
 
  protected:
   Standard_Boolean myClear; //! Option to nullify allocated memory