From 6e9f8cb7044774da171b2a0f6ffdda579eb9ddab Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 6 Dec 2014 15:17:15 -0600 Subject: Fix Kontact crash in Akregator part due to identical destructor signatures being generated for two unrelated classes This relates to Bug 2235 Fix a slew of non-virtual destructor problems --- libkcal/calendarresources.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libkcal') diff --git a/libkcal/calendarresources.h b/libkcal/calendarresources.h index c9d2e3341..bb756f85f 100644 --- a/libkcal/calendarresources.h +++ b/libkcal/calendarresources.h @@ -77,6 +77,7 @@ class LIBKCAL_EXPORT CalendarResources : DestinationPolicy( CalendarResourceManager *manager, TQWidget *parent = 0 ) : mManager( manager ), mParent( parent ) {} + virtual ~DestinationPolicy() {} virtual ResourceCalendar *destination( Incidence *incidence ) = 0; virtual TQWidget *parent() { return mParent; } @@ -100,6 +101,7 @@ class LIBKCAL_EXPORT CalendarResources : StandardDestinationPolicy( CalendarResourceManager *manager, TQWidget *parent = 0 ) : DestinationPolicy( manager, parent ) {} + virtual ~StandardDestinationPolicy() {} ResourceCalendar *destination( Incidence *incidence ); @@ -117,6 +119,7 @@ class LIBKCAL_EXPORT CalendarResources : AskDestinationPolicy( CalendarResourceManager *manager, TQWidget *parent = 0 ) : DestinationPolicy( manager, parent ) {} + virtual ~AskDestinationPolicy() {} ResourceCalendar *destination( Incidence *incidence ); -- cgit v1.2.1