]> git.saurik.com Git - wxWidgets.git/commitdiff
Add virtual dtor to header renderer classes to avoid g++ warnings.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Sep 2009 23:21:48 +0000 (23:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Sep 2009 23:21:48 +0000 (23:21 +0000)
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

index 029507d7eac9802fcbf6353a98526435e962938e..92d216bb7f021e3ee26507eae52bf7602cc4d05e 100644 (file)
@@ -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() { }
 };