]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxCHECKED_DELETE in wxScopedPtr<T>.
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 6 May 2010 05:42:52 +0000 (05:42 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 6 May 2010 05:42:52 +0000 (05:42 +0000)
It was only used in macros-based implementation, use it in the template
version too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/scopedptr.h

index 515c7fc383f1f648cc6a0288314440132af862af..bfe98de16e5afc9c59f7b668e7b48bdd5b462b9e 100644 (file)
@@ -43,7 +43,7 @@ public:
 
     wxEXPLICIT wxScopedPtr(T * ptr = NULL) : m_ptr(ptr) { }
 
-    ~wxScopedPtr() { delete m_ptr; }
+    ~wxScopedPtr() { wxCHECKED_DELETE(m_ptr); }
 
     // test for pointer validity: defining conversion to unspecified_bool_type
     // and not more obvious bool to avoid implicit conversions to integer types