Avoid warnings when combining wxStaticText styles with C++20

Because wxStaticText can contain arbitrary combinations of both
alignment and border flags, we need to allow using "|" on them, just as
it was done for a few other enums in 3d278ee75f (Avoid warnings about
operations on different enums in C++20 mode, 2021-04-25).

See #22656.

Closes #22657.
This commit is contained in:
David Connet 2022-07-20 15:34:30 -07:00 committed by Vadim Zeitlin
parent 8e2c683bf7
commit 5477d4faa8

View file

@ -1468,6 +1468,7 @@ enum wxBorder
wxALLOW_COMBINING_ENUMS(wxAlignment, wxDirection)
wxALLOW_COMBINING_ENUMS(wxAlignment, wxGeometryCentre)
wxALLOW_COMBINING_ENUMS(wxAlignment, wxStretch)
wxALLOW_COMBINING_ENUMS(wxAlignment, wxBorder)
wxALLOW_COMBINING_ENUMS(wxDirection, wxStretch)
wxALLOW_COMBINING_ENUMS(wxDirection, wxGeometryCentre)