WaE: deleting object of abstract class type with non-virtual destructor

This commit is contained in:
David Tardon 2012-01-15 16:19:59 +01:00
parent d54349233f
commit e18a7b0e38
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -60,6 +60,7 @@ private:
protected:
PropertyAccessorBase() : m_refCount( 0 ) { }
virtual ~PropertyAccessorBase();
public:
virtual oslInterlockedCount SAL_CALL acquire();