From 6e67c03dc0225fc66343546b14e902b9d238b1a3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 14 Mar 2012 13:27:56 +0100 Subject: Enable -Wnon-virtual-dtor for GCC 4.6 ...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed. --- reportdesign/source/ui/inc/CondFormat.hxx | 3 +++ reportdesign/source/ui/inc/MarkedSection.hxx | 3 +++ 2 files changed, 6 insertions(+) (limited to 'reportdesign/source/ui') diff --git a/reportdesign/source/ui/inc/CondFormat.hxx b/reportdesign/source/ui/inc/CondFormat.hxx index 5ccd968c6a66..bc1ef7edf2b7 100644 --- a/reportdesign/source/ui/inc/CondFormat.hxx +++ b/reportdesign/source/ui/inc/CondFormat.hxx @@ -65,6 +65,9 @@ namespace rptui virtual void moveConditionUp( size_t _nCondIndex ) = 0; virtual void moveConditionDown( size_t _nCondIndex ) = 0; virtual ::rtl::OUString getDataField() const = 0; + + protected: + ~IConditionalFormatAction() {} }; /************************************************************************* diff --git a/reportdesign/source/ui/inc/MarkedSection.hxx b/reportdesign/source/ui/inc/MarkedSection.hxx index a879e7053d2a..2a441ab3c4bb 100644 --- a/reportdesign/source/ui/inc/MarkedSection.hxx +++ b/reportdesign/source/ui/inc/MarkedSection.hxx @@ -54,6 +54,9 @@ namespace rptui * \param _nPos the position is zero based. */ virtual void markSection(const sal_uInt16 _nPos) = 0; + + protected: + ~IMarkedSection() {} }; } // rptui -- cgit