]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
Header Cosmetics
[wxWidgets.git] / include / wx / object.h
index e4faf7a05b1f614d49dfdfc3330a34d67cd35c3c..bc0824541b64f78cb6a1086aba691180bd72ecac 100644 (file)
@@ -348,12 +348,13 @@ name##PluginSentinel  m_pluginsentinel;
 
 
 #ifdef __WXDEBUG__
-inline void wxCheckCast(void *ptr)
+inline void* wxCheckCast(void *ptr)
 {
     wxASSERT_MSG( ptr, _T("wxStaticCast() used incorrectly") );
+    return ptr;
 }
 #define wxStaticCast(obj, className) \
- (wxCheckCast(wxDynamicCast(obj, className)), ((className *)(obj)))
+ ((className *)wxCheckCast(wxDynamicCast(obj, className)))
 
 #else  // !__WXDEBUG__
 #define wxStaticCast(obj, className) ((className *)(obj))