From 0975228809b36863f68753185e69a11efebd57eb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 26 Apr 2017 14:41:08 +0200 Subject: [PATCH] Fix build problem with "override" on wxApp::GetXVisualInfo() This method doesn't override any virtual method in the base class, so wxOVERRIDE can't be used here. In fact, this method doesn't seem to be used at all, but keep it for compatibility and in case we want to use it later, as wxGTK does. --- include/wx/unix/glx11.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/unix/glx11.h b/include/wx/unix/glx11.h index 9295687a4b..50305778c4 100644 --- a/include/wx/unix/glx11.h +++ b/include/wx/unix/glx11.h @@ -143,8 +143,10 @@ public: return wxGLCanvasX11::InitDefaultVisualInfo(attribList); } - // and implement this wxGTK::wxApp method too - virtual void *GetXVisualInfo() wxOVERRIDE + // This method is not currently used by the library itself, but remains for + // 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() { return wxGLCanvasX11::GetDefaultXVisualInfo(); }