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:
parent
4f45ba63f4
commit
bb0a3c4aff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user