added wxStaticCast, moved wxConstCast from wx/object.h to wx/defs.h for consistency

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-02-10 22:11:14 +00:00
parent ecfd48ca08
commit 0613b80c17
2 changed files with 18 additions and 10 deletions

View File

@@ -340,13 +340,6 @@ name##PluginSentinel m_pluginsentinel;
#define wxDynamicCastThis(className) \
(IsKindOf(&className::ms_classInfo) ? (className *)(this) : (className *)0)
#ifdef HAVE_CONST_CAST
#define wxConstCast(obj, className) const_cast<className *>(obj)
#else
#define wxConstCast(obj, className) ((className *)(obj))
#endif
#ifdef __WXDEBUG__
inline void* wxCheckCast(void *ptr)
{