X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepExtrema%2FBRepExtrema_ExtCC.hxx;h=6e4277524147f1c1d6e3185b16965995dc3ac995;hb=1c35b92f5f2a40f07daad81e31af2183de3c60fd;hpb=59f45b7cefdfbbe8442fe35113530c3c0d21d2b6 diff --git a/src/BRepExtrema/BRepExtrema_ExtCC.hxx b/src/BRepExtrema/BRepExtrema_ExtCC.hxx index a6e2fcd31c..6e42775241 100644 --- a/src/BRepExtrema/BRepExtrema_ExtCC.hxx +++ b/src/BRepExtrema/BRepExtrema_ExtCC.hxx @@ -9,6 +9,9 @@ #ifndef _Standard_HeaderFile #include #endif +#ifndef _Standard_DefineAlloc_HeaderFile +#include +#endif #ifndef _Standard_Macro_HeaderFile #include #endif @@ -37,18 +40,7 @@ class BRepExtrema_ExtCC { 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 Standard_EXPORT BRepExtrema_ExtCC() {