X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c263d56675aa7e75115d2380515a7a539f5a880..c04ec4965704643f498999fb5123e63330a3ee50:/include/wx/flags.h?ds=inline diff --git a/include/wx/flags.h b/include/wx/flags.h index e251ed7da2..d0b7c82c8b 100644 --- a/include/wx/flags.h +++ b/include/wx/flags.h @@ -158,10 +158,12 @@ private : }; #define WX_DEFINE_FLAGS( flags ) \ - struct WXDLLEXPORT flags \ + class WXDLLEXPORT flags \ {\ - flags(long data=0) :m_data(data) {} \ + public : \ + flags(long data=0) :m_data(data) {} \ long m_data ;\ + bool operator ==(const flags &rhs) const { return m_data == rhs.m_data; }\ } ; #endif