Get rid of wxCOMPILER_NO_OVERLOAD_ON_ENUM compile guard
This commit is contained in:
parent
caab5dda00
commit
29370cfee9
@ -105,11 +105,6 @@ extern WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList;
|
|||||||
// to compile without warnings which it would otherwise provoke from some
|
// to compile without warnings which it would otherwise provoke from some
|
||||||
// compilers as it compares elements of different enums
|
// compilers as it compares elements of different enums
|
||||||
|
|
||||||
// Unfortunately some compilers have ambiguity issues when enum comparisons are
|
|
||||||
// overloaded so we have to disable the overloads in this case, see
|
|
||||||
// wxCOMPILER_NO_OVERLOAD_ON_ENUM definition in wx/platform.h for more details.
|
|
||||||
#ifndef wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
wxDEPRECATED_MSG("use wxBRUSHSTYLE_XXX constants only")
|
wxDEPRECATED_MSG("use wxBRUSHSTYLE_XXX constants only")
|
||||||
inline bool operator==(wxBrushStyle s, wxDeprecatedGUIConstants t)
|
inline bool operator==(wxBrushStyle s, wxDeprecatedGUIConstants t)
|
||||||
{
|
{
|
||||||
@ -122,6 +117,4 @@ inline bool operator!=(wxBrushStyle s, wxDeprecatedGUIConstants t)
|
|||||||
return static_cast<int>(s) != static_cast<int>(t);
|
return static_cast<int>(s) != static_cast<int>(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
#endif // _WX_BRUSH_H_BASE_
|
#endif // _WX_BRUSH_H_BASE_
|
||||||
|
@ -677,11 +677,6 @@ extern WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList;
|
|||||||
// to compile without warnings which it would otherwise provoke from some
|
// to compile without warnings which it would otherwise provoke from some
|
||||||
// compilers as it compares elements of different enums
|
// compilers as it compares elements of different enums
|
||||||
|
|
||||||
// Unfortunately some compilers have ambiguity issues when enum comparisons are
|
|
||||||
// overloaded so we have to disable the overloads in this case, see
|
|
||||||
// wxCOMPILER_NO_OVERLOAD_ON_ENUM definition in wx/platform.h for more details.
|
|
||||||
#ifndef wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
wxDEPRECATED_MSG("use wxFONTFAMILY_XXX constants") \
|
wxDEPRECATED_MSG("use wxFONTFAMILY_XXX constants") \
|
||||||
inline bool operator==(wxFontFamily s, wxDeprecatedGUIConstants t)
|
inline bool operator==(wxFontFamily s, wxDeprecatedGUIConstants t)
|
||||||
{ return static_cast<int>(s) == static_cast<int>(t); }
|
{ return static_cast<int>(s) == static_cast<int>(t); }
|
||||||
@ -701,6 +696,4 @@ wxDEPRECATED_MSG("use wxFONTWEIGHT_XXX constants") \
|
|||||||
inline bool operator!=(wxFontWeight s, wxDeprecatedGUIConstants t)
|
inline bool operator!=(wxFontWeight s, wxDeprecatedGUIConstants t)
|
||||||
{ return static_cast<int>(s) != static_cast<int>(t); }
|
{ return static_cast<int>(s) != static_cast<int>(t); }
|
||||||
|
|
||||||
#endif // // wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
#endif // _WX_FONT_H_BASE_
|
#endif // _WX_FONT_H_BASE_
|
||||||
|
@ -117,11 +117,6 @@ extern WXDLLIMPEXP_DATA_CORE(wxPenList*) wxThePenList;
|
|||||||
// to compile without warnings which it would otherwise provoke from some
|
// to compile without warnings which it would otherwise provoke from some
|
||||||
// compilers as it compares elements of different enums
|
// compilers as it compares elements of different enums
|
||||||
|
|
||||||
// Unfortunately some compilers have ambiguity issues when enum comparisons are
|
|
||||||
// overloaded so we have to disable the overloads in this case, see
|
|
||||||
// wxCOMPILER_NO_OVERLOAD_ON_ENUM definition in wx/platform.h for more details.
|
|
||||||
#ifndef wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants")
|
wxDEPRECATED_MSG("use wxPENSTYLE_XXX constants")
|
||||||
inline bool operator==(wxPenStyle s, wxDeprecatedGUIConstants t)
|
inline bool operator==(wxPenStyle s, wxDeprecatedGUIConstants t)
|
||||||
{
|
{
|
||||||
@ -134,6 +129,4 @@ inline bool operator!=(wxPenStyle s, wxDeprecatedGUIConstants t)
|
|||||||
return static_cast<int>(s) != static_cast<int>(t);
|
return static_cast<int>(s) != static_cast<int>(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxCOMPILER_NO_OVERLOAD_ON_ENUM
|
|
||||||
|
|
||||||
#endif // _WX_PEN_H_BASE_
|
#endif // _WX_PEN_H_BASE_
|
||||||
|
Loading…
Reference in New Issue
Block a user