made wxStaticCast more backwards compatible by allowing it to cast away const as well (in release build)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-09 15:23:49 +00:00
parent 74b99d0f8a
commit ef0aea5ad4

View File

@ -330,7 +330,8 @@ inline void* wxCheckCast(void *ptr)
((className *)wxCheckCast(wxDynamicCast(obj, className))) ((className *)wxCheckCast(wxDynamicCast(obj, className)))
#else // !__WXDEBUG__ #else // !__WXDEBUG__
#define wxStaticCast(obj, className) wx_static_cast(className *, obj) #define wxStaticCast(obj, className) \
wx_const_cast(className *, wx_static_cast(const className *, obj))
#endif // __WXDEBUG__ #endif // __WXDEBUG__