summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-10-06 09:19:04 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-10-06 11:00:05 +0200
commitf1ad49892d983e67244b9d65033dcecda6c28e19 (patch)
tree7f66287610e9fba579da6b3ff8c67279c887d0ab /xmlsecurity
parentb94eb50b2e28604b1b9b363dc5f0b1c04490addf (diff)
xmlsecurity: last 2 params of setSAXChainConnector() is always nullptr
So remove them. Change-Id: Iec2430af6634608bdc8c4beff6078ccceb7a2391 Reviewed-on: https://gerrit.libreoffice.org/43182 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/xsecctl.hxx5
-rw-r--r--xmlsecurity/source/helper/xsecctl.cxx16
-rw-r--r--xmlsecurity/source/helper/xsecverify.cxx2
3 files changed, 6 insertions, 17 deletions
diff --git a/xmlsecurity/inc/xsecctl.hxx b/xmlsecurity/inc/xsecctl.hxx
index 5e8cdb6ccfe7..3abd31d9d75d 100644
--- a/xmlsecurity/inc/xsecctl.hxx
+++ b/xmlsecurity/inc/xsecctl.hxx
@@ -339,10 +339,7 @@ public:
const css::uno::Reference<
css::xml::crypto::XXMLSecurityContext >& xSecurityContext );
- void setSAXChainConnector(
- const css::uno::Reference< css::lang::XInitialization >& xInitialization,
- const css::uno::Reference< css::xml::sax::XDocumentHandler >& xDocumentHandler,
- const css::uno::Reference< css::xml::crypto::sax::XElementStackKeeper >& xElementStackKeeper);
+ void setSAXChainConnector(const css::uno::Reference< css::lang::XInitialization >& xInitialization);
void clearSAXChainConnector();
void endMission();
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index 616ffcfb2ae4..767c55fe1e87 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -474,10 +474,7 @@ void XSecController::startMission(
m_bVerifyCurrentSignature = false;
}
-void XSecController::setSAXChainConnector(
- const cssu::Reference< cssl::XInitialization >& xInitialization,
- const cssu::Reference< cssxs::XDocumentHandler >& xDocumentHandler,
- const cssu::Reference< cssxc::sax::XElementStackKeeper >& xElementStackKeeper)
+void XSecController::setSAXChainConnector(const cssu::Reference< cssl::XInitialization >& xInitialization)
/****** XSecController/setSAXChainConnector ***********************************
*
* NAME
@@ -485,21 +482,16 @@ void XSecController::setSAXChainConnector(
* collaborate with the SAXEventKeeper on the SAX chain.
*
* SYNOPSIS
- * setSAXChainConnector( xInitialization,
- * xDocumentHandler,
- * xElementStackKeeper );
+ * setSAXChainConnector(xInitialization);
*
* INPUTS
* xInitialization - the previous node on the SAX chain
- * xDocumentHandler - the next node on the SAX chain
- * xElementStackKeeper - the ElementStackKeeper component which reserves
- * missed key SAX events for the SAXEventKeeper
******************************************************************************/
{
m_bIsPreviousNodeInitializable = true;
m_xPreviousNodeOnSAXChain = xInitialization;
- m_xNextNodeOnSAXChain = xDocumentHandler;
- m_xElementStackKeeper = xElementStackKeeper;
+ m_xNextNodeOnSAXChain.clear();
+ m_xElementStackKeeper.clear();
initializeSAXChain( );
}
diff --git a/xmlsecurity/source/helper/xsecverify.cxx b/xmlsecurity/source/helper/xsecverify.cxx
index 3ec123bc4029..b4f8158b7c6c 100644
--- a/xmlsecurity/source/helper/xsecverify.cxx
+++ b/xmlsecurity/source/helper/xsecverify.cxx
@@ -466,7 +466,7 @@ cssu::Reference< cssxs::XDocumentHandler > const & XSecController::createSignatu
m_xSecParser = new XSecParser(rXMLSignatureHelper, this);
cssu::Reference< cssl::XInitialization > xInitialization(m_xSecParser, uno::UNO_QUERY);
- setSAXChainConnector(xInitialization, nullptr, nullptr);
+ setSAXChainConnector(xInitialization);
return m_xSecParser;
}