diff options
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/refvaluecomponent.hxx | 2 | ||||
-rw-r--r-- | forms/source/inc/FormComponent.hxx | 11 |
2 files changed, 4 insertions, 9 deletions
diff --git a/forms/source/component/refvaluecomponent.hxx b/forms/source/component/refvaluecomponent.hxx index 09c42c92f7aa..7afdd98aa7c6 100644 --- a/forms/source/component/refvaluecomponent.hxx +++ b/forms/source/component/refvaluecomponent.hxx @@ -57,7 +57,7 @@ namespace frm bool _bSupportNoCheckRefValue = false ); DECLARE_DEFAULT_CLONE_CTOR( OReferenceValueComponent ) - DECLARE_DEFAULT_DTOR( OReferenceValueComponent ); + virtual ~OReferenceValueComponent(); // OPropertySet and friends virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const SAL_OVERRIDE; diff --git a/forms/source/inc/FormComponent.hxx b/forms/source/inc/FormComponent.hxx index abd4b024e8bf..f63e9da49508 100644 --- a/forms/source/inc/FormComponent.hxx +++ b/forms/source/inc/FormComponent.hxx @@ -523,11 +523,6 @@ public: getInstanceMutex() { return m_aMutex; } }; - -// simple destructor -#define DECLARE_DEFAULT_DTOR( classname ) \ - virtual ~classname() - // constructor for cloning a class #define DECLARE_DEFAULT_CLONE_CTOR( classname ) \ classname( \ @@ -543,7 +538,7 @@ public: const OUString& _rDefault \ ); \ DECLARE_DEFAULT_CLONE_CTOR( classname ) \ - DECLARE_DEFAULT_DTOR( classname ) \ + virtual ~classname() \ // all xtors for an inner class of the object hierarchy which is *bound* #define DECLARE_DEFAULT_BOUND_XTOR( classname ) \ @@ -555,7 +550,7 @@ public: const bool _bSupportsValidation \ ); \ DECLARE_DEFAULT_CLONE_CTOR( classname ) \ - DECLARE_DEFAULT_DTOR( classname ) \ + virtual ~classname() \ // all xtors for a leas class of the object hierarchy #define DECLARE_DEFAULT_LEAF_XTOR( classname ) \ @@ -566,7 +561,7 @@ public: const classname* _pOriginal, \ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>& _rxFactory \ ); \ - DECLARE_DEFAULT_DTOR( classname ) \ + virtual ~classname() \ // XCloneable |