All:
- Hindi translations added (Dhananjaya Sharma)
+- wxDynamicCast() now uses static_cast<wxObject *> internally and so using it
+ with anything not deriving from wxObject will fail at compile time (instead
+ of run-time) now
All (GUI):
// to be replaced by dynamic_cast<> in the future
#define wxDynamicCast(obj, className) \
- ((className *) wxCheckDynamicCast((wxObject*)(obj), &className::ms_classInfo))
+ ((className *) wxCheckDynamicCast( \
+ wx_const_cast(wxObject *, wx_static_cast(const wxObject *, \
+ wx_const_cast(className *, wx_static_cast(const className *, obj)))), \
+ &className::ms_classInfo))
// The 'this' pointer is always true, so use this version
// to cast the this pointer and avoid compiler warnings.