X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/341287bf49066e5dd84e971bd508ee3919ff4b46..66de8e7a1be8a943d82838094acec88a34534566:/src/common/object.cpp diff --git a/src/common/object.cpp b/src/common/object.cpp index 9bfb34ca1d..d26826ebe2 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -22,7 +22,7 @@ #ifndef WX_PRECOMP #include "wx/hash.h" -#ifdef USE_SERIAL +#ifdef wxUSE_SERIAL #include "wx/objstrm.h" #include "wx/serbase.h" #endif @@ -31,11 +31,11 @@ #include #include -#if (WXDEBUG && USE_MEMORY_TRACING) || USE_DEBUG_CONTEXT +#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT #include "wx/memory.h" #endif -#if WXDEBUG || USE_DEBUG_CONTEXT +#if WXDEBUG || wxUSE_DEBUG_CONTEXT // for wxObject::Dump #include #endif @@ -53,7 +53,7 @@ wxHashTable* wxClassInfo::sm_classTable = (wxHashTable*) NULL; wxObject::wxObject(void) { m_refData = (wxObjectRefData *) NULL; -#ifdef USE_SERIAL +#ifdef wxUSE_SERIAL m_serialObj = (wxObject_Serialize *)NULL; #endif } @@ -61,7 +61,7 @@ wxObject::wxObject(void) wxObject::~wxObject(void) { UnRef(); -#ifdef USE_SERIAL +#ifdef wxUSE_SERIAL if (m_serialObj) delete m_serialObj; #endif @@ -83,7 +83,7 @@ bool wxObject::IsKindOf(wxClassInfo *info) const return FALSE; } -#if WXDEBUG || USE_DEBUG_CONTEXT +#if WXDEBUG || wxUSE_DEBUG_CONTEXT void wxObject::Dump(ostream& str) { if (GetClassInfo() && GetClassInfo()->GetClassName()) @@ -93,7 +93,7 @@ void wxObject::Dump(ostream& str) } #endif -#if WXDEBUG && USE_MEMORY_TRACING +#if WXDEBUG && wxUSE_MEMORY_TRACING #ifdef new #undef new @@ -109,6 +109,14 @@ void wxObject::operator delete (void * buf) wxDebugFree(buf); } +// VC++ 6.0 +#if _MSC_VER >= 1200 +void operator wxObject::delete(void* pData, char* /* fileName */, int /* lineNum */) +{ + ::operator delete(pData); +} +#endif + // Cause problems for VC++ - crashes #ifndef _MSC_VER void * wxObject::operator new[] (size_t size, char * fileName, int lineNum) @@ -250,7 +258,7 @@ wxObject *wxCreateDynamicObject(const char *name) return (wxObject*) NULL; } -#ifdef USE_SERIAL +#ifdef wxUSE_SERIAL #include "wx/serbase.h" #include "wx/dynlib.h"