From 4e0c592f98541952291b5da3add924f6ce4dd1b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 6 May 2010 05:42:52 +0000 Subject: [PATCH] Use wxCHECKED_DELETE in wxScopedPtr. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/scopedptr.h b/include/wx/scopedptr.h index 515c7fc383..bfe98de16e 100644 --- a/include/wx/scopedptr.h +++ b/include/wx/scopedptr.h @@ -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 -- 2.45.2