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

New commits:
commit 53e6d0a087318ad5a72885ab71396eb489641814
Author: Stephan Bergmann <[email protected]>
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 <[email protected]>
    Reviewed-by: Stephan Bergmann <[email protected]>

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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to