[Libreoffice-commits] core.git: xmlsecurity/source

Stephan Bergmann sbergman at redhat.com
Sun Oct 1 06:58:55 UTC 2017


 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 53e6d0a087318ad5a72885ab71396eb489641814
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sat Sep 30 22:50:36 2017 +0200

    loplugin:flatten (clang-cl, xmlsecurity)
    
    Change-Id: I6c2d7f235df94b13b0501cce4ad1a699a9a1169c
    Reviewed-on: https://gerrit.libreoffice.org/42981
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
index 762054fa05dc..b30805bc8003 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
@@ -66,12 +66,11 @@ sal_Int32 SAL_CALL XMLSecurityContext_MSCryptImpl::getSecurityEnvironmentNumber(
 css::uno::Reference< css::xml::crypto::XSecurityEnvironment > SAL_CALL
     XMLSecurityContext_MSCryptImpl::getSecurityEnvironmentByIndex( sal_Int32 index )
 {
-    if (index == 0)
+    if (index != 0)
     {
-        return m_xSecurityEnvironment;
-    }
-    else
         throw RuntimeException() ;
+    }
+    return m_xSecurityEnvironment;
 }
 
 css::uno::Reference< css::xml::crypto::XSecurityEnvironment > SAL_CALL


More information about the Libreoffice-commits mailing list