From c9a199c6a6372374c49071197870324b6fbf5094 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Sep 2009 23:21:48 +0000 Subject: [PATCH] Add virtual dtor to header renderer classes to avoid g++ warnings. g++ warns about class with virtual functions having non-virtual dtor so make the dtor of wxGridCornerHeaderRenderer virtual even if it's not really needed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/grid.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 029507d7ea..92d216bb7f 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -295,6 +295,11 @@ public: virtual void DrawBorder(const wxGrid& grid, wxDC& dc, wxRect& rect) const = 0; + + // make the dtor of a class with virtual functions virtual to avoid g++ + // warnings, even though this class is not supposed to be used + // polymorphically + virtual ~wxGridCornerHeaderRenderer() { } };