From c1877a16b38bfd74a52e39b49289d5f5572b610b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Feb 2017 13:10:45 +0200 Subject: loplugin:unusedfields Change-Id: I8a114bcda99f123d230d61b0d0595bfe657cc3c0 Reviewed-on: https://gerrit.libreoffice.org/34513 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xml_helper/xml_impctx.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 598b2bd8cad8..a05f5df678f7 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -320,15 +320,12 @@ class ExtendedAttributes : OUString * m_pQNames; OUString * m_pValues; - rtl::Reference m_xHandler; - public: inline ExtendedAttributes( sal_Int32 nAttributes, sal_Int32 * pUids, OUString * pLocalNames, OUString * pQNames, - Reference< xml::sax::XAttributeList > const & xAttributeList, - DocumentHandlerImpl * pHandler ); + Reference< xml::sax::XAttributeList > const & xAttributeList ); virtual ~ExtendedAttributes() throw () override; // XAttributes @@ -355,14 +352,12 @@ inline ExtendedAttributes::ExtendedAttributes( sal_Int32 nAttributes, sal_Int32 * pUids, OUString * pLocalNames, OUString * pQNames, - Reference< xml::sax::XAttributeList > const & xAttributeList, - DocumentHandlerImpl * pHandler ) + Reference< xml::sax::XAttributeList > const & xAttributeList ) : m_nAttributes( nAttributes ) , m_pUids( pUids ) , m_pLocalNames( pLocalNames ) , m_pQNames( pQNames ) , m_pValues( new OUString[ nAttributes ] ) - , m_xHandler( pHandler ) { for ( sal_Int32 nPos = 0; nPos < nAttributes; ++nPos ) { @@ -542,7 +537,7 @@ void DocumentHandlerImpl::startElement( xAttributes = static_cast< xml::input::XAttributes * >( new ExtendedAttributes( nAttribs, pUids, pLocalNames, pQNames, - xAttribs, this ) ); + xAttribs ) ); getElementName( rQElementName, &nUid, &aLocalName ); -- cgit