Fix clang -Winconsistent-missing-override in wxGLApp

Use "override" for wxGLApp::GetXVisualInfo(), but only for wxGTK2 where
it really overrides it, unlike in wxX11.

Closes #17995.
This commit is contained in:
Scott Furry 2017-11-12 17:02:43 +01:00 committed by Vadim Zeitlin
parent a03441f959
commit 3653b753d3

View File

@ -147,6 +147,9 @@ public:
// backwards compatibility and also because wxGTK has it we could start
// using it for the same purpose in wxX11 too some day.
virtual void *GetXVisualInfo()
#ifdef __WXGTK20__
wxOVERRIDE
#endif
{
return wxGLCanvasX11::GetDefaultXVisualInfo();
}