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:
parent
6e949961ef
commit
626a96058f
@ -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); \
|
||||||
|
Loading…
Reference in New Issue
Block a user