X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FStandard%2FHandle_Standard_Persistent.hxx;h=015ad8e17c8343bdc63f00ef577ebdc6c62f21a5;hb=1c35b92f5f2a40f07daad81e31af2183de3c60fd;hpb=59f45b7cefdfbbe8442fe35113530c3c0d21d2b6 diff --git a/src/Standard/Handle_Standard_Persistent.hxx b/src/Standard/Handle_Standard_Persistent.hxx index f826d61300..015ad8e17c 100755 --- a/src/Standard/Handle_Standard_Persistent.hxx +++ b/src/Standard/Handle_Standard_Persistent.hxx @@ -8,6 +8,9 @@ #ifndef _Handle_Standard_Persistent_HeaderFile #define _Handle_Standard_Persistent_HeaderFile +#ifndef _Standard_DefineAlloc_HeaderFile +#include +#endif #ifndef _Standard_Macro_HeaderFile #include #endif @@ -38,8 +41,6 @@ class Handle_Standard_Persistent; Standard_EXPORT Standard_Integer HashCode(const Handle(Standard_Persistent)& , const Standard_Integer); -Standard_EXPORT Standard_Address StandardCSFDB_Allocate(const Standard_Size); -Standard_EXPORT void StandardCSFDB_Free(Standard_Address&); class Handle(Standard_Persistent) { @@ -69,18 +70,7 @@ class Handle(Standard_Persistent) public: - void* operator new(size_t,void* anAddress) - { - return anAddress; - } - void* operator new(size_t size) - { - return StandardCSFDB_Allocate(size); - } - void operator delete(void *anAddress) - { - if (anAddress) StandardCSFDB_Free(anAddress); - } + DEFINE_STANDARD_ALLOC Handle(Standard_Persistent)() {