From 53e6d0a087318ad5a72885ab71396eb489641814 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 30 Sep 2017 22:50:36 +0200 Subject: loplugin:flatten (clang-cl, xmlsecurity) Change-Id: I6c2d7f235df94b13b0501cce4ad1a699a9a1169c Reviewed-on: https://gerrit.libreoffice.org/42981 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- .../source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- cgit v1.2.3