From e18a7b0e3846b940a7d6facfd9abc9d3fd355d94 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 15 Jan 2012 16:19:59 +0100 Subject: WaE: deleting object of abstract class type with non-virtual destructor --- forms/source/xforms/propertysetbase.cxx | 4 ++++ forms/source/xforms/propertysetbase.hxx | 1 + 2 files changed, 5 insertions(+) (limited to 'forms') diff --git a/forms/source/xforms/propertysetbase.cxx b/forms/source/xforms/propertysetbase.cxx index c0523629d175..6c7f1ef8ae17 100644 --- a/forms/source/xforms/propertysetbase.cxx +++ b/forms/source/xforms/propertysetbase.cxx @@ -49,6 +49,10 @@ using com::sun::star::lang::IllegalArgumentException; using com::sun::star::beans::Property; using com::sun::star::beans::XPropertySetInfo; +PropertyAccessorBase::~PropertyAccessorBase() +{ +} + oslInterlockedCount SAL_CALL PropertyAccessorBase::acquire() { return ++m_refCount; diff --git a/forms/source/xforms/propertysetbase.hxx b/forms/source/xforms/propertysetbase.hxx index ca09b5e3517c..3b035d984a79 100644 --- a/forms/source/xforms/propertysetbase.hxx +++ b/forms/source/xforms/propertysetbase.hxx @@ -60,6 +60,7 @@ private: protected: PropertyAccessorBase() : m_refCount( 0 ) { } + virtual ~PropertyAccessorBase(); public: virtual oslInterlockedCount SAL_CALL acquire(); -- cgit