diff options
author | David Tardon <dtardon@redhat.com> | 2012-01-15 16:09:33 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-01-15 20:27:17 +0100 |
commit | 09f8d4f75a0b3527bf6f99f5408dfda3c711c382 (patch) | |
tree | 891555a614e2498f243c635073f2ea411f5bf04c /basic | |
parent | ee5371c805312946f4fd83f3394536e51cd9fdfb (diff) |
WaE: deleting object of abstract class type with non-virtual destructor
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/basic/sbxfac.hxx | 1 | ||||
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/basic/inc/basic/sbxfac.hxx b/basic/inc/basic/sbxfac.hxx index 494b912911d3..2ef93a1140f8 100644 --- a/basic/inc/basic/sbxfac.hxx +++ b/basic/inc/basic/sbxfac.hxx @@ -41,6 +41,7 @@ class BASIC_DLLPUBLIC SbxFactory { sal_Bool bHandleLast; // sal_True: Factory is asked at last because of its expensiveness public: + virtual ~SbxFactory(); SbxFactory( sal_Bool bLast=sal_False ) { bHandleLast = bLast; } sal_Bool IsHandleLast( void ) { return bHandleLast; } virtual SbxBase* Create( sal_uInt16 nSbxId, sal_uInt32 = SBXCR_SBX ); diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 84dc30725ee6..303f382b6b56 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -346,6 +346,10 @@ sal_Bool SbxBase::StoreCompleted() //////////////////////////////// SbxFactory //////////////////////////////// +SbxFactory::~SbxFactory() +{ +} + SbxBase* SbxFactory::Create( sal_uInt16, sal_uInt32 ) { return NULL; |