Fix clang -Winconsistent-missing-override when not using RTTI

In this case wx-specific RTTI is used and GetWxTypeId() method was
overridden without using wxOVERRIDE, which resulted in dozens of
warnings for each translation unit.
This commit is contained in:
Vadim Zeitlin 2019-03-19 02:12:01 +01:00
parent 6e949961ef
commit 626a96058f

View File

@ -106,7 +106,7 @@ typedef void (*wxTypeIdentifier)();
// WX_DECLARE_TYPEINFO() or WX_DECLARE_TYPEINFO_INLINE() however. // WX_DECLARE_TYPEINFO() or WX_DECLARE_TYPEINFO_INLINE() however.
#define _WX_DECLARE_TYPEINFO_CUSTOM(CLS, IDENTFUNC) \ #define _WX_DECLARE_TYPEINFO_CUSTOM(CLS, IDENTFUNC) \
public: \ public: \
virtual wxTypeIdentifier GetWxTypeId() const \ virtual wxTypeIdentifier GetWxTypeId() const wxOVERRIDE \
{ \ { \
return reinterpret_cast<wxTypeIdentifier> \ return reinterpret_cast<wxTypeIdentifier> \
(&IDENTFUNC); \ (&IDENTFUNC); \