summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-01-08 12:52:04 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-01-14 14:45:01 +0100
commit640a7c791b4665c16be7ad8f5f7dda30dcc88eda (patch)
tree31f6dfe2de9a1620d8e1e99f3e899628930db1a0 /include/xmloff
parent61618210f87f57ae21cc39530c9f777d76002a12 (diff)
xmloff: XmlImageStyle class is pointless as the methods are static
When used, we instantiate the XmlImageStyle class but all its methods are static, so instantioation is completely pointless. So change XmlImageStyle to a namespace and static method to functions. Change-Id: I6385bd7eeb08c627cb8e48b79a6820372cf94a65 Reviewed-on: https://gerrit.libreoffice.org/47851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/ImageStyle.hxx19
1 files changed, 5 insertions, 14 deletions
diff --git a/include/xmloff/ImageStyle.hxx b/include/xmloff/ImageStyle.hxx
index 2fd3f0167583..80f873d386fc 100644
--- a/include/xmloff/ImageStyle.hxx
+++ b/include/xmloff/ImageStyle.hxx
@@ -31,23 +31,14 @@ class SvXMLUnitConverter;
class SvXMLExport;
class SvXMLImport;
-class XMLOFF_DLLPUBLIC XMLImageStyle
+namespace XMLImageStyle
{
-public:
- XMLImageStyle();
- ~XMLImageStyle();
- static void exportXML( const OUString& rStrName, const css::uno::Any& rValue, SvXMLExport& rExport );
- static void importXML( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList, css::uno::Any& rValue, OUString& rStrName, SvXMLImport& rImport );
+XMLOFF_DLLPUBLIC void exportXML(OUString const & rStrName, css::uno::Any const & rValue, SvXMLExport& rExport);
+XMLOFF_DLLPUBLIC bool importXML(css::uno::Reference<css::xml::sax::XAttributeList> const & xAttrList,
+ css::uno::Any& rValue, OUString& rStrName, SvXMLImport& rImport);
-private:
-
- SAL_DLLPRIVATE static void ImpExportXML( const OUString& rStrName, const css::uno::Any& rValue,
- SvXMLExport& rExport );
- SAL_DLLPRIVATE static bool ImpImportXML( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList,
- css::uno::Any& rValue, OUString& rStrName,
- SvXMLImport& rImport );
-};
+}
#endif // INCLUDED_XMLOFF_IMAGESTYLE_HXX