]> git.saurik.com Git - wxWidgets.git/commitdiff
added virtual dtor to wxDateTimeHolidayAuthority (patch 753947)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2003 13:23:56 +0000 (13:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2003 13:23:56 +0000 (13:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/datetime.h
src/common/datetime.cpp

index c9e9ec35e8fcd3d80bfbd16e9dda1b62bacb80c2..287655c6e789c8185c0b266cc6096e75e04db1b0 100644 (file)
@@ -1322,6 +1322,9 @@ public:
     // wxDateTimeHolidayAuthority)
     static void AddAuthority(wxDateTimeHolidayAuthority *auth);
 
+    // the base class must have a virtual dtor
+    virtual ~wxDateTimeHolidayAuthority();
+
 protected:
     // this function is called to determine whether a given day is a holiday
     virtual bool DoIsHoliday(const wxDateTime& dt) const = 0;
index adc7531568946655d85ab4d92f67ebf5f0b39179..4f1df66c7ec2d0fc4acd85e9c93f2dae9ab96ee3 100644 (file)
@@ -3863,6 +3863,11 @@ void wxDateTimeHolidayAuthority::AddAuthority(wxDateTimeHolidayAuthority *auth)
     ms_authorities.Add(auth);
 }
 
+wxDateTimeHolidayAuthority::~wxDateTimeHolidayAuthority()
+{
+    // nothing to do here
+}
+
 // ----------------------------------------------------------------------------
 // wxDateTimeWorkDays
 // ----------------------------------------------------------------------------