diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-13 11:34:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-13 18:47:02 +0200 |
commit | 041e0d0943dffc2002a21ba7a157200766ecd644 (patch) | |
tree | 42514379bd16ab3b20c5f1d2df30fda30f399a0f | |
parent | 62541620ef1c8d3720e6e96b5d4eed7be8562db5 (diff) |
remove unnecessary exportStyleFamily method
Change-Id: I59c75494ffd3f132a041beebb4336714c1e94143
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150338
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/xmloff/styleexp.hxx | 6 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/styleexp.cxx | 11 |
3 files changed, 2 insertions, 19 deletions
diff --git a/include/xmloff/styleexp.hxx b/include/xmloff/styleexp.hxx index 4cd11971ccee..66bfc42dc4d0 100644 --- a/include/xmloff/styleexp.hxx +++ b/include/xmloff/styleexp.hxx @@ -99,12 +99,6 @@ public: const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString* pPrefix = nullptr); - - void exportStyleFamily( - const char *pFamily, const OUString& rXMLFamily, - const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper, - bool bUsed, XmlStyleFamily nFamily, - const OUString* pPrefix = nullptr); }; #endif diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index a42bf11fdce9..fd6693819f6b 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -1988,8 +1988,8 @@ void ScXMLExport::ExportStyles_( bool bUsed ) } exportDataStyles(); - aStylesExp->exportStyleFamily(OUString("CellStyles"), - OUString(XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME), xCellStylesExportPropertySetMapper, false, XmlStyleFamily::TABLE_CELL); + aStylesExp->exportStyleFamily("CellStyles", + XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME, xCellStylesExportPropertySetMapper, false, XmlStyleFamily::TABLE_CELL); SvXMLExport::ExportStyles_(bUsed); } diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index b311dbdf6c34..190ac47be5bc 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -454,17 +454,6 @@ void XMLStyleExport::exportDefaultStyle( } void XMLStyleExport::exportStyleFamily( - const char *pFamily, - const OUString& rXMLFamily, - const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper, - bool bUsed, XmlStyleFamily nFamily, const OUString* pPrefix) -{ - const OUString sFamily(OUString::createFromAscii(pFamily )); - exportStyleFamily( sFamily, rXMLFamily, rPropMapper, bUsed, nFamily, - pPrefix); -} - -void XMLStyleExport::exportStyleFamily( const OUString& rFamily, const OUString& rXMLFamily, const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper, bool bUsed, XmlStyleFamily nFamily, const OUString* pPrefix) |