X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e32eea148dafadbdd0712377c1b5038406ffde5..6181cef53222dc7f04e0e52fc4a2d399709a076e:/include/wx/memory.h diff --git a/include/wx/memory.h b/include/wx/memory.h index 22820dcb91..41ef650f98 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -70,36 +70,18 @@ WXDLLIMPEXP_BASE void wxDebugFree(void * buf, bool isVect = false); #define wxUSE_ARRAY_MEMORY_OPERATORS 0 #endif -inline void * operator new (size_t size, wxChar * fileName, int lineNum) -{ - return wxDebugAlloc(size, fileName, lineNum, false, false); -} +void * operator new (size_t size, wxChar * fileName, int lineNum); -inline void * operator new (size_t size) -{ - return wxDebugAlloc(size, NULL, 0, false); -} +void * operator new (size_t size); -inline void operator delete (void * buf) -{ - wxDebugFree(buf, false); -} +void operator delete (void * buf); #if wxUSE_ARRAY_MEMORY_OPERATORS -inline void * operator new[] (size_t size) -{ - return wxDebugAlloc(size, NULL, 0, false, true); -} +void * operator new[] (size_t size); -inline void * operator new[] (size_t size, wxChar * fileName, int lineNum) -{ - return wxDebugAlloc(size, fileName, lineNum, false, true); -} +void * operator new[] (size_t size, wxChar * fileName, int lineNum); -inline void operator delete[] (void * buf) -{ - wxDebugFree(buf, true); -} +void operator delete[] (void * buf); #endif // VC++ 6.0 and MWERKS