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(-)

New commits:
commit 1c12e5fe5a458f4a4d4dd8080c2ade2f20ef17dc
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon May 2 14:20:15 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue May 3 11:19:51 2022 +0200

    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 <sberg...@redhat.com>

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<view::XSelectionSupplier> 
xSelectionSupplier(pBaseModel->getCurrentController(),
                                                                 
uno::UNO_QUERY);
-    xSelectionSupplier->select(uno::makeAny(xShape));
+    xSelectionSupplier->select(uno::Any(xShape));
     uno::Sequence<uno::Reference<security::XCertificate>> 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<css::uno::Any> args
     {
-        makeAny(OUString::number(nSecurityId)),
-        
makeAny(uno::Reference<xml::crypto::sax::XSecuritySAXEventKeeper>(m_xSAXEventKeeper)),
-        makeAny(OUString::number(nIdOfSignatureElementCollector)),
+        Any(OUString::number(nSecurityId)),
+        
Any(uno::Reference<xml::crypto::sax::XSecuritySAXEventKeeper>(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<css::uno::Any> args
     {
-        makeAny(OUString::number(nSecurityId)),
-        
makeAny(uno::Reference<xml::crypto::sax::XSecuritySAXEventKeeper>(m_xSAXEventKeeper)),
-        makeAny(OUString::number(nIdOfSignatureElementCollector)),
-        makeAny(m_xSecurityContext),
-        makeAny(m_xXMLSignature)
+        Any(OUString::number(nSecurityId)),
+        
Any(uno::Reference<xml::crypto::sax::XSecuritySAXEventKeeper>(m_xSAXEventKeeper)),
+        Any(OUString::number(nIdOfSignatureElementCollector)),
+        Any(m_xSecurityContext),
+        Any(m_xXMLSignature)
     };
     xInitialization->initialize(args);
 

Reply via email to