summaryrefslogtreecommitdiff
path: root/xmloff
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 /xmloff
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 'xmloff')
-rw-r--r--xmloff/inc/xmloff/XMLSettingsExportContext.hxx2
-rw-r--r--xmloff/inc/xmloff/settingsstore.hxx3
-rw-r--r--xmloff/source/forms/callbacks.hxx9
3 files changed, 14 insertions, 0 deletions
diff --git a/xmloff/inc/xmloff/XMLSettingsExportContext.hxx b/xmloff/inc/xmloff/XMLSettingsExportContext.hxx
index aea52317e90a..b3be0276e780 100644
--- a/xmloff/inc/xmloff/XMLSettingsExportContext.hxx
+++ b/xmloff/inc/xmloff/XMLSettingsExportContext.hxx
@@ -58,6 +58,8 @@ namespace xmloff
virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
GetServiceFactory() const = 0;
+ protected:
+ ~XMLSettingsExportContext() {}
};
//........................................................................
diff --git a/xmloff/inc/xmloff/settingsstore.hxx b/xmloff/inc/xmloff/settingsstore.hxx
index af9ac084d20f..b9f5f04c45bd 100644
--- a/xmloff/inc/xmloff/settingsstore.hxx
+++ b/xmloff/inc/xmloff/settingsstore.hxx
@@ -49,6 +49,9 @@ public:
filterStreamsToStorage(
const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
+
+protected:
+ ~DocumentSettingsSerializer() {}
};
#endif // _XMLOFF_SETTINGS_STORE_HXX
diff --git a/xmloff/source/forms/callbacks.hxx b/xmloff/source/forms/callbacks.hxx
index 4bf0f7de2690..ed3818aafbae 100644
--- a/xmloff/source/forms/callbacks.hxx
+++ b/xmloff/source/forms/callbacks.hxx
@@ -63,6 +63,9 @@ namespace xmloff
virtual ::rtl::OUString getObjectStyleName(
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject ) = 0;
+
+ protected:
+ ~IFormsExportContext() {}
};
//=====================================================================
@@ -75,6 +78,9 @@ namespace xmloff
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
) = 0;
+
+ protected:
+ ~IEventAttacherManager() {}
};
//=====================================================================
@@ -86,6 +92,9 @@ namespace xmloff
virtual void registerEvents(
const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
) = 0;
+
+ protected:
+ ~IEventAttacher() {}
};
//.........................................................................