summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-30 22:50:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-01 08:58:28 +0200
commit53e6d0a087318ad5a72885ab71396eb489641814 (patch)
tree6884e82ebf16fd78a414bf4c92f69076f25e8505
parentec737443c29f50fc9ce9452c58540442c6b34948 (diff)
loplugin:flatten (clang-cl, xmlsecurity)
Change-Id: I6c2d7f235df94b13b0501cce4ad1a699a9a1169c Reviewed-on: https://gerrit.libreoffice.org/42981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx7
1 files 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