Fix checks for WXWIN_COMPATIBILITY_3_0: use #if, not #ifdef.
The deprecated methods were always available as WXWIN_COMPATIBILITY_3_0 is always defined, we need to check its value and not its definedness. Closes #16782. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1d1f045f11
commit
a9549f1066
@ -110,7 +110,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
// This assignment operator is not portable as it is not implemented in any
|
||||
// other ports.
|
||||
wxDEPRECATED_MSG("Don't assign wxCursor to an existing wxBitmap, create a new wxBitmap from wxCursor instead.")
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
virtual ~wxTipProvider() { }
|
||||
|
||||
|
||||
#ifdef WXWIN_COMPATIBILITY_3_0
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxDEPRECATED_MSG("this method does nothing, simply don't call it")
|
||||
wxString PreprocessTip(const wxString& tip) { return tip; }
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user