added virtual dtor to wxDateTimeHolidayAuthority (patch 753947)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-06-14 13:23:56 +00:00
parent 3080bf599a
commit 30e671a59f
2 changed files with 8 additions and 0 deletions

View 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;

View File

@ -3863,6 +3863,11 @@ void wxDateTimeHolidayAuthority::AddAuthority(wxDateTimeHolidayAuthority *auth)
ms_authorities.Add(auth);
}
wxDateTimeHolidayAuthority::~wxDateTimeHolidayAuthority()
{
// nothing to do here
}
// ----------------------------------------------------------------------------
// wxDateTimeWorkDays
// ----------------------------------------------------------------------------