mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-24 15:45:11 +08:00
Disable wxDeprecatedGUIConstants comparisons without 3.2 compat
Start preparing for removing these deprecated comparison operators.
This commit is contained in:
@@ -102,6 +102,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList;
|
||||
// to compile without warnings which it would otherwise provoke from some
|
||||
// compilers as it compares elements of different enums
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
wxDEPRECATED_MSG("use wxBRUSHSTYLE_XXX constants only")
|
||||
inline bool operator==(wxBrushStyle s, wxDeprecatedGUIConstants t)
|
||||
{
|
||||
@@ -114,4 +116,6 @@ inline bool operator!=(wxBrushStyle s, wxDeprecatedGUIConstants t)
|
||||
return static_cast<int>(s) != static_cast<int>(t);
|
||||
}
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
#endif // _WX_BRUSH_H_BASE_
|
||||
|
||||
@@ -671,6 +671,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList;
|
||||
// to compile without warnings which it would otherwise provoke from some
|
||||
// compilers as it compares elements of different enums
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
wxDEPRECATED_MSG("use wxFONTFAMILY_XXX constants") \
|
||||
inline bool operator==(wxFontFamily s, wxDeprecatedGUIConstants t)
|
||||
{ return static_cast<int>(s) == static_cast<int>(t); }
|
||||
@@ -690,4 +692,6 @@ wxDEPRECATED_MSG("use wxFONTWEIGHT_XXX constants") \
|
||||
inline bool operator!=(wxFontWeight s, wxDeprecatedGUIConstants t)
|
||||
{ return static_cast<int>(s) != static_cast<int>(t); }
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
#endif // _WX_FONT_H_BASE_
|
||||
|
||||
@@ -133,6 +133,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxPenList*) wxThePenList;
|
||||
// to compile without warnings which it would otherwise provoke from some
|
||||
// compilers as it compares elements of different enums
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants")
|
||||
inline bool operator==(wxPenStyle s, wxDeprecatedGUIConstants t)
|
||||
{
|
||||
@@ -145,4 +147,6 @@ inline bool operator!=(wxPenStyle s, wxDeprecatedGUIConstants t)
|
||||
return static_cast<int>(s) != static_cast<int>(t);
|
||||
}
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_3_2
|
||||
|
||||
#endif // _WX_PEN_H_BASE_
|
||||
|
||||
Reference in New Issue
Block a user