From a7d403698f6750bbf8c161e88aee5ab8a6b0bcd4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Dec 2008 16:03:50 +0000 Subject: [PATCH] made wxHeaderColumnBase dtor virtual to avoid gcc warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/headercol.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/wx/headercol.h b/include/wx/headercol.h index 87c2e15082..548298a831 100644 --- a/include/wx/headercol.h +++ b/include/wx/headercol.h @@ -67,6 +67,11 @@ public: int flags = wxCOL_DEFAULT_FLAGS); */ + // virtual dtor for the base class to avoid gcc warnings even though we + // don't normally delete the objects of this class via a pointer to + // wxHeaderColumnBase so it's not necessary, strictly speaking + virtual ~wxHeaderColumnBase() { } + // setters and getters for various attributes // ------------------------------------------ @@ -100,7 +105,7 @@ public: // notice that while we make Set/GetFlags() pure virtual here and implement // the individual flags access in terms of them, for some derived classes // it is more natural to implement access to each flag individually, in - // which case they can use SetIndividualFlags() and GetFromIndividualFlags() + // which case they can use SetIndividualFlags() and GetFromIndividualFlags() // below to implement Set/GetFlags() // set or retrieve all column flags at once: combination of wxCOL_XXX -- 2.45.2