From f59334988a77eece1cae7d63e0df4320beebf384 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 30 Aug 2020 10:22:09 +0200 Subject: use more fastparser in SvXMLStyleContext subclasses Change-Id: I6a1596bdbfa4db128730a663fc590c9e5bfa249d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101659 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/filter/xml/xmlStyleImport.cxx | 7 ++----- dbaccess/source/filter/xml/xmlStyleImport.hxx | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/filter/xml/xmlStyleImport.cxx b/dbaccess/source/filter/xml/xmlStyleImport.cxx index e75a1d57861f..46534bb233c7 100644 --- a/dbaccess/source/filter/xml/xmlStyleImport.cxx +++ b/dbaccess/source/filter/xml/xmlStyleImport.cxx @@ -41,10 +41,8 @@ using namespace xmloff::token; OTableStyleContext::OTableStyleContext( ODBFilter& rImport, - sal_Int32 nElement, - const Reference< XFastAttributeList > & xAttrList, SvXMLStylesContext& rStyles, XmlStyleFamily nFamily ) - :XMLPropStyleContext( rImport, nElement, xAttrList, rStyles, nFamily, false ) + :XMLPropStyleContext( rImport, rStyles, nFamily, false ) ,pStyles(&rStyles) ,m_nNumberFormat(-1) { @@ -204,8 +202,7 @@ SvXMLStyleContext *OTableStylesContext::CreateStyleStyleChildContext( case XmlStyleFamily::TABLE_TABLE: case XmlStyleFamily::TABLE_COLUMN: case XmlStyleFamily::TABLE_CELL: - return new OTableStyleContext( GetOwnImport(), nElement, - xAttrList, *this, nFamily ); + return new OTableStyleContext( GetOwnImport(), *this, nFamily ); break; default: break; } diff --git a/dbaccess/source/filter/xml/xmlStyleImport.hxx b/dbaccess/source/filter/xml/xmlStyleImport.hxx index 8f962fd42b71..ee8ec1524357 100644 --- a/dbaccess/source/filter/xml/xmlStyleImport.hxx +++ b/dbaccess/source/filter/xml/xmlStyleImport.hxx @@ -47,8 +47,7 @@ namespace dbaxml public: - OTableStyleContext( ODBFilter& rImport, sal_Int32 nElement, - const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList, + OTableStyleContext( ODBFilter& rImport, SvXMLStylesContext& rStyles, XmlStyleFamily nFamily ); virtual ~OTableStyleContext() override; -- cgit