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
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