diff options
author | David Tardon <dtardon@redhat.com> | 2012-01-15 16:19:59 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-01-15 20:27:18 +0100 |
commit | e18a7b0e3846b940a7d6facfd9abc9d3fd355d94 (patch) | |
tree | caeb1c00399f7ec739bdac6fd4072c01b675f750 | |
parent | d54349233fe15c3ec747d59d6ad525e4b8c451b8 (diff) |
WaE: deleting object of abstract class type with non-virtual destructor
-rw-r--r-- | forms/source/xforms/propertysetbase.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/propertysetbase.hxx | 1 |
2 files changed, 5 insertions, 0 deletions
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(); |