diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-18 04:59:34 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-22 07:51:17 +0000 |
commit | 931f62a52085d78f81a12f277808ff9cfc6c9078 (patch) | |
tree | 32527c79ea7bf096b188a1e670f0a5d1ea6877f5 /xmlsecurity | |
parent | 0be1b5f4a64b53aee054d29db2bee2eb37f5131e (diff) |
coverity#735579 Logically dead code
Change-Id: I68a1dc0926b1310b196212e0ec602cc9d78b43de
Reviewed-on: https://gerrit.libreoffice.org/2230
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/certvalidity.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmlsecurity/source/xmlsec/certvalidity.cxx b/xmlsecurity/source/xmlsec/certvalidity.cxx index a2d8f43b3567..dfe46fad3de8 100644 --- a/xmlsecurity/source/xmlsec/certvalidity.cxx +++ b/xmlsecurity/source/xmlsec/certvalidity.cxx @@ -45,10 +45,8 @@ using namespace ::com::sun::star::security ; rtl::OUString certificateValidityToOUString( ::sal_Int32 certValidity ) { OUString aValidity ; - if( (certValidity & CertificateValidity::VALID) == CertificateValidity::VALID ) { + if( certValidity == CertificateValidity::VALID ) { aValidity = OUString(VALID_STR ) ; - } else if( ( certValidity & CertificateValidity::INVALID ) == CertificateValidity::INVALID ) { - aValidity = OUString(INVALID_STR ) ; } else if( ( certValidity & CertificateValidity::UNTRUSTED ) == CertificateValidity::UNTRUSTED ) { aValidity = OUString(UNTRUSTED_STR ) ; } else if( ( certValidity & CertificateValidity::TIME_INVALID ) == CertificateValidity::TIME_INVALID ) { |