#define wxDEFINE_SCOPED_PTR(T, name)\
name::~name() \
{ \
- wxCHECKED_DELETE(m_ptr) \
+ wxCHECKED_DELETE(m_ptr); \
}
#define wxDECLARE_SCOPED_ARRAY(T, name)\
};
#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