0022815: Missing delete operator for placement new
[occt.git] / src / BRepSweep / BRepSweep_NumLinearRegularSweep.hxx
index ca70cd1..90d012e 100755 (executable)
@@ -64,6 +64,9 @@ class BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep;
 #ifndef _Standard_HeaderFile
 #include <Standard.hxx>
 #endif
+#ifndef _Standard_DefineAlloc_HeaderFile
+#include <Standard_DefineAlloc.hxx>
+#endif
 #ifndef _Standard_Macro_HeaderFile
 #include <Standard_Macro.hxx>
 #endif
@@ -72,18 +75,8 @@ class BRepSweep_NumLinearRegularSweep  {
 
 public:
 
-    void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
+  DEFINE_STANDARD_ALLOC
+
  // Methods PUBLIC
  // 
 Standard_EXPORT virtual  void Delete() ;