From: Vadim Zeitlin Date: Sun, 3 Feb 2002 12:30:40 +0000 (+0000) Subject: added asserts to Clone/CreateRefData() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d18700787fa19f11b54c3cc9dfe735cca1925422?ds=sidebyside added asserts to Clone/CreateRefData() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/object.cpp b/src/common/object.cpp index d502615e27..96f54f4277 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -276,11 +276,17 @@ void wxObject::AllocExclusive() wxObjectRefData *wxObject::CreateRefData() const { + // if you use AllocExclusive() you must override this method + wxFAIL_MSG( _T("CreateRefData() must be overridden if called!") ); + return NULL; } wxObjectRefData *wxObject::CloneRefData(wxObjectRefData * WXUNUSED(data)) const { + // if you use AllocExclusive() you must override this method + wxFAIL_MSG( _T("CloneRefData() must be overridden if called!") ); + return NULL; }