diff --git a/include/wx/object.h b/include/wx/object.h index a882a36e6e..8a5f1bb96e 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -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.