]> git.saurik.com Git - wxWidgets.git/commitdiff
(Blind) fix for BCC compile glitch.
authorRon Lee <ron@debian.org>
Tue, 4 Dec 2001 10:40:35 +0000 (10:40 +0000)
committerRon Lee <ron@debian.org>
Tue, 4 Dec 2001 10:40:35 +0000 (10:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/object.h

index 93d89717b4af4f306bb13a0cf9856583fe006e3b..69e379684232b87b000d1425aa391f1527305153 100644 (file)
@@ -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.