]> git.saurik.com Git - wxWidgets.git/commitdiff
added extra parentheses to wxDynamicCast() to allow using it like wxDynamicCast(foo...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Aug 2002 20:58:53 +0000 (20:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 26 Aug 2002 20:58:53 +0000 (20:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/object.h

index a882a36e6ed08f36b2e597fc55e294b045012751..8a5f1bb96e280cd95b74511215e5a052c48cd30d 100644 (file)
@@ -303,7 +303,7 @@ name##PluginSentinel  m_pluginsentinel;
 
 // to be replaced by dynamic_cast<> in the future
 #define wxDynamicCast(obj, className) \
- (className *) wxCheckDynamicCast((wxObject*)(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.