compilation fix for the last fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-08-14 23:00:33 +00:00
parent 4f45ba63f4
commit bb0a3c4aff

View File

@ -123,7 +123,7 @@ public: \
#define wxDEFINE_SCOPED_PTR(T, name)\
name::~name() \
{ \
wxCHECKED_DELETE(m_ptr) \
wxCHECKED_DELETE(m_ptr); \
}
#define wxDECLARE_SCOPED_ARRAY(T, name)\
@ -162,16 +162,16 @@ public: \
};
#define wxDEFINE_SCOPED_ARRAY(T, name) \
name::~name() \
{ \
wxCHECKED_DELETE_ARRAY(m_ptr) \
} \
void name::reset(T * p){ \
if (m_ptr != p) \
{ \
wxCHECKED_DELETE_ARRAY(m_ptr); \
m_ptr = p; \
} \
name::~name() \
{ \
wxCHECKED_DELETE_ARRAY(m_ptr); \
} \
void name::reset(T * p){ \
if (m_ptr != p) \
{ \
wxCHECKED_DELETE_ARRAY(m_ptr); \
m_ptr = p; \
} \
}
#endif