X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/946ceed9cd2b7b0453c715110eb9a921febf8b3d..1ac5cfc7c9d2df832a4e8f5737f43995e3308ab4:/include/wx/weakref.h diff --git a/include/wx/weakref.h b/include/wx/weakref.h index b767cafd0a..08878903f4 100644 --- a/include/wx/weakref.h +++ b/include/wx/weakref.h @@ -149,7 +149,7 @@ protected: DoAssign( pobj, ptbase ); } -#ifdef HAVE_DYNAMIC_CAST +#ifndef wxNO_RTTI void AssignHelper(T* pobj, wxInt2Type) { // A last way to get a trackable pointer @@ -165,7 +165,7 @@ protected: Release(); } } -#endif // HAVE_DYNAMIC_CAST +#endif // RTTI enabled void AssignCopy(const wxWeakRefImpl& wr) { @@ -254,7 +254,7 @@ public: }; -#ifdef HAVE_DYNAMIC_CAST +#ifndef wxNO_RTTI // Weak ref implementation assign objects are queried for wxTrackable // using dynamic_cast<> @@ -338,7 +338,7 @@ protected: T *m_pobj; }; -#endif // #ifdef HAVE_DYNAMIC_CAST +#endif // RTTI enabled // Provide some basic types of weak references