From b293e58aa5e10e90081dac89826877c7d01c3adc Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 15 Jan 2012 16:56:53 +0100 Subject: WaE: deleting object of abstract class type with non-virtual destructor --- svtools/inc/svtools/colrdlg.hxx | 1 + svtools/source/dialogs/colrdlg.cxx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/svtools/inc/svtools/colrdlg.hxx b/svtools/inc/svtools/colrdlg.hxx index 09336e12d134..2c395764bfbe 100644 --- a/svtools/inc/svtools/colrdlg.hxx +++ b/svtools/inc/svtools/colrdlg.hxx @@ -49,6 +49,7 @@ class SVT_DLLPUBLIC SvColorDialog { public: SvColorDialog( ::Window* pParent ); + virtual ~SvColorDialog(); void SetColor( const Color& rColor ); const Color& GetColor() const; diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx index fed70b9f6bd7..7c553b1317d9 100644 --- a/svtools/source/dialogs/colrdlg.cxx +++ b/svtools/source/dialogs/colrdlg.cxx @@ -54,7 +54,9 @@ SvColorDialog::SvColorDialog( Window* pWindow ) { } -// ----------------------------------------------------------------------- +SvColorDialog::~SvColorDialog() +{ +} void SvColorDialog::SetColor( const Color& rColor ) { -- cgit