summaryrefslogtreecommitdiff
path: root/dbaccess/source/core
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-14 13:27:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-03-14 13:32:02 +0100
commit6e67c03dc0225fc66343546b14e902b9d238b1a3 (patch)
tree6e078783d65e280a721b4e46f0ae0ca6b950f121 /dbaccess/source/core
parentfe4be5047988782f3143a1af505c5eecb3f2af5a (diff)
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.
Diffstat (limited to 'dbaccess/source/core')
-rw-r--r--dbaccess/source/core/inc/RefreshListener.hxx3
-rw-r--r--dbaccess/source/core/inc/column.hxx3
-rw-r--r--dbaccess/source/core/inc/columnsettings.hxx3
-rw-r--r--dbaccess/source/core/inc/containerapprove.hxx2
4 files changed, 11 insertions, 0 deletions
diff --git a/dbaccess/source/core/inc/RefreshListener.hxx b/dbaccess/source/core/inc/RefreshListener.hxx
index 80e490c4a34c..dbd3b8aada5e 100644
--- a/dbaccess/source/core/inc/RefreshListener.hxx
+++ b/dbaccess/source/core/inc/RefreshListener.hxx
@@ -47,6 +47,9 @@ namespace dbaccess
{
public:
virtual void refresh(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rToBeRefreshed) = 0;
+
+ protected:
+ ~IRefreshListener() {}
};
} // namespace dbaccess
diff --git a/dbaccess/source/core/inc/column.hxx b/dbaccess/source/core/inc/column.hxx
index b6e533a81a35..93333f87282e 100644
--- a/dbaccess/source/core/inc/column.hxx
+++ b/dbaccess/source/core/inc/column.hxx
@@ -150,6 +150,9 @@ namespace dbaccess
/** notifies that a column with a given name has been dropped
*/
virtual void columnDropped( const ::rtl::OUString& _sName ) = 0;
+
+ protected:
+ ~IColumnFactory() {}
};
//============================================================
diff --git a/dbaccess/source/core/inc/columnsettings.hxx b/dbaccess/source/core/inc/columnsettings.hxx
index c407b60820a8..c976e332b23c 100644
--- a/dbaccess/source/core/inc/columnsettings.hxx
+++ b/dbaccess/source/core/inc/columnsettings.hxx
@@ -62,6 +62,9 @@ namespace dbaccess
const ::com::sun::star::uno::Type& _rType,
const void* _pInitialValue
) = 0;
+
+ protected:
+ ~IPropertyContainer() {}
};
//====================================================================
diff --git a/dbaccess/source/core/inc/containerapprove.hxx b/dbaccess/source/core/inc/containerapprove.hxx
index abedd666e0f3..b88e945afd6d 100644
--- a/dbaccess/source/core/inc/containerapprove.hxx
+++ b/dbaccess/source/core/inc/containerapprove.hxx
@@ -52,6 +52,8 @@ namespace dbaccess
class SAL_NO_VTABLE IContainerApprove
{
public:
+ virtual ~IContainerApprove() {}
+
/** approves a given element for insertion into the container
@param _rName
specifies the name under which the element is going to be inserted