added extra parentheses to wxDynamicCast() to allow using it like wxDynamicCast(foo, Foo)->DoFoo()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-08-26 20:58:53 +00:00
parent 8284b0c5bd
commit 768f1af6a2

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