From d965bcda31851460b34d491706e1d6b589eb1dd1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 Sep 2012 13:34:25 +0000 Subject: [PATCH] Fix harmless virtual function hiding warning in wxMSW build. Override the other StrokeLines() overload in wxGDIPlusContext just to avoid the warning about hiding a base class virtual method from MinGW compiler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/graphics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index 8532760634..98134fb42f 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -381,6 +381,13 @@ public: // stroke lines connecting each of the points virtual void StrokeLines( size_t n, const wxPoint2DDouble *points); + // We don't have any specific implementation for this one in wxMSW but + // override it just to avoid warnings about hiding the base class virtual. + virtual void StrokeLines( size_t n, const wxPoint2DDouble *beginPoints, const wxPoint2DDouble *endPoints) + { + wxGraphicsContext::StrokeLines(n, beginPoints, endPoints); + } + // draws a polygon virtual void DrawLines( size_t n, const wxPoint2DDouble *points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );