From 6618a6d7f2b462e43ef8df4a14babacb5519c986 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Mar 2015 09:53:43 +0200 Subject: loplugin:constantfunction: xmlsecurity Change-Id: Iabe2b4677b75cbd4b10a55fc4b2f13ba29645cd4 --- xmlsecurity/source/xmlsec/saxhelper.cxx | 10 ---------- xmlsecurity/source/xmlsec/saxhelper.hxx | 3 --- xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx | 3 +-- 3 files changed, 1 insertion(+), 15 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/xmlsec/saxhelper.cxx b/xmlsecurity/source/xmlsec/saxhelper.cxx index 9c454a30a921..ee0d950813cc 100644 --- a/xmlsecurity/source/xmlsec/saxhelper.cxx +++ b/xmlsecurity/source/xmlsec/saxhelper.cxx @@ -373,14 +373,4 @@ void SAXHelper::processingInstruction( } } -/** - * XDocumentHandler -- set document locator - * In this case, locator is useless. - */ -void SAXHelper::setDocumentLocator( - const cssu::Reference< cssxs::XLocator > &) - throw( cssxs::SAXException , cssu::RuntimeException ) -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlsecurity/source/xmlsec/saxhelper.hxx b/xmlsecurity/source/xmlsec/saxhelper.hxx index 8ed3e6e6bc16..4683d3fa8f03 100644 --- a/xmlsecurity/source/xmlsec/saxhelper.hxx +++ b/xmlsecurity/source/xmlsec/saxhelper.hxx @@ -71,9 +71,6 @@ class SAXHelper const OUString& aData ) throw( ::com::sun::star::xml::sax::SAXException , ::com::sun::star::uno::RuntimeException ) ; - void setDocumentLocator( const ::com::sun::star::uno::Reference< - ::com::sun::star::xml::sax::XLocator > & xLocator ) - throw( ::com::sun::star::xml::sax::SAXException , ::com::sun::star::uno::RuntimeException ) ; } ; #endif diff --git a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx index 4f37d71b3a06..76ea5e393245 100644 --- a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx +++ b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx @@ -1002,10 +1002,9 @@ void SAL_CALL XMLDocumentWrapper_XmlSecImpl::processingInstruction( const OUStri saxHelper.processingInstruction(aTarget, aData); } -void SAL_CALL XMLDocumentWrapper_XmlSecImpl::setDocumentLocator( const cssu::Reference< cssxs::XLocator >& xLocator ) +void SAL_CALL XMLDocumentWrapper_XmlSecImpl::setDocumentLocator( const cssu::Reference< cssxs::XLocator >& ) throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { - saxHelper.setDocumentLocator(xLocator); } /* XCompressedDocumentHandler */ -- cgit