]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ptr_scpd.h
avoid a bug in Carbon headers
[wxWidgets.git] / include / wx / ptr_scpd.h
index 785b03603e07652ae0108cd26d07678900082883..84b3da0f84400b6d5464ed653360bab6e4810066 100644 (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