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. --- connectivity/source/inc/TResultSetHelper.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'connectivity/source/inc/TResultSetHelper.hxx') diff --git a/connectivity/source/inc/TResultSetHelper.hxx b/connectivity/source/inc/TResultSetHelper.hxx index 874b9d93d82b..e32e9ed11f4b 100644 --- a/connectivity/source/inc/TResultSetHelper.hxx +++ b/connectivity/source/inc/TResultSetHelper.hxx @@ -52,6 +52,9 @@ namespace connectivity virtual sal_Int32 getDriverPos() const = 0; virtual sal_Bool deletedVisible() const = 0; virtual sal_Bool isRowDeleted() const = 0; + + protected: + ~IResultSetHelper() {} }; } -- cgit