From 21160e4544745bd62090f5b699275039c8484ed9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 30 Apr 2013 10:35:57 +0000 Subject: [PATCH] Add a trivial virtual dtor to suppress g++ warnings. Add a useless but virtual dtor to ValidationTraverserBase private class to avoid g++ warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index c3b4e315ce..1601d08e42 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2035,6 +2035,11 @@ public: return true; } + // Give it a virtual dtor just to suppress gcc warnings about a class with + // virtual methods but non-virtual dtor -- even if this is completely safe + // here as we never use the objects of this class polymorphically. + virtual ~ValidationTraverserBase() { } + protected: // Called for each child, validator is guaranteed to be non-NULL. virtual bool OnDo(wxValidator* validator) = 0; -- 2.45.2