From: Ron Lee Date: Tue, 4 Dec 2001 10:40:35 +0000 (+0000) Subject: (Blind) fix for BCC compile glitch. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a22eb2f5c3bc79c5e3736ba6bd7dee8b9cebf2a7?ds=inline (Blind) fix for BCC compile glitch. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/object.h b/include/wx/object.h index 93d89717b4..69e3796842 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -171,7 +171,7 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \ // to be replaced by dynamic_cast<> in the future #define wxDynamicCast(obj, className) \ - (className *) wxCheckDynamicCast((obj), &className::sm_class##className) + (className *) wxCheckDynamicCast((wxObject*)(obj), &className::sm_class##className) // The 'this' pointer is always true, so use this version to cast the this // pointer and avoid compiler warnings.