From 1c12e5fe5a458f4a4d4dd8080c2ade2f20ef17dc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 2 May 2022 14:20:15 +0200 Subject: Just use Any ctor instead of makeAny in xmlsecurity Change-Id: Ic2e9189d116b03122d24a477d9396ca3d49a0a25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133698 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlsecurity/qa/unit/signing/signing.cxx | 2 +- xmlsecurity/source/helper/xsecsign.cxx | 10 +++++----- xmlsecurity/source/helper/xsecverify.cxx | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/xmlsecurity/qa/unit/signing/signing.cxx b/xmlsecurity/qa/unit/signing/signing.cxx index 90d0edf8973e..9e28f90d55d1 100644 --- a/xmlsecurity/qa/unit/signing/signing.cxx +++ b/xmlsecurity/qa/unit/signing/signing.cxx @@ -827,7 +827,7 @@ CPPUNIT_TEST_FIXTURE(SigningTest, testPDFAddVisibleSignature) // Select it and assign a certificate. uno::Reference xSelectionSupplier(pBaseModel->getCurrentController(), uno::UNO_QUERY); - xSelectionSupplier->select(uno::makeAny(xShape)); + xSelectionSupplier->select(uno::Any(xShape)); uno::Sequence> aCertificates = mxSecurityContext->getSecurityEnvironment()->getPersonalCertificates(); if (!aCertificates.hasElements()) diff --git a/xmlsecurity/source/helper/xsecsign.cxx b/xmlsecurity/source/helper/xsecsign.cxx index fdbd0f614cfb..5634ed502e8b 100644 --- a/xmlsecurity/source/helper/xsecsign.cxx +++ b/xmlsecurity/source/helper/xsecsign.cxx @@ -69,13 +69,13 @@ css::uno::Reference< css::xml::crypto::sax::XReferenceResolvedListener > XSecCon css::uno::Sequence args { - makeAny(OUString::number(nSecurityId)), - makeAny(uno::Reference(m_xSAXEventKeeper)), - makeAny(OUString::number(nIdOfSignatureElementCollector)), + Any(OUString::number(nSecurityId)), + Any(uno::Reference(m_xSAXEventKeeper)), + Any(OUString::number(nIdOfSignatureElementCollector)), //for nss, the internal module is used for signing, which needs to be improved later - makeAny(m_xSecurityContext->getSecurityEnvironment()), - makeAny(m_xXMLSignature) + Any(m_xSecurityContext->getSecurityEnvironment()), + Any(m_xXMLSignature) }; xSignatureCreator->initialize(args); diff --git a/xmlsecurity/source/helper/xsecverify.cxx b/xmlsecurity/source/helper/xsecverify.cxx index 6c676dc3825a..c45bece5fed9 100644 --- a/xmlsecurity/source/helper/xsecverify.cxx +++ b/xmlsecurity/source/helper/xsecverify.cxx @@ -75,11 +75,11 @@ css::uno::Reference< css::xml::crypto::sax::XReferenceResolvedListener > XSecCon css::uno::Sequence args { - makeAny(OUString::number(nSecurityId)), - makeAny(uno::Reference(m_xSAXEventKeeper)), - makeAny(OUString::number(nIdOfSignatureElementCollector)), - makeAny(m_xSecurityContext), - makeAny(m_xXMLSignature) + Any(OUString::number(nSecurityId)), + Any(uno::Reference(m_xSAXEventKeeper)), + Any(OUString::number(nIdOfSignatureElementCollector)), + Any(m_xSecurityContext), + Any(m_xXMLSignature) }; xInitialization->initialize(args); -- cgit