[Libreoffice-commits] core.git: xmlsecurity/source
Norbert Thiebaud
nthiebaud at gmail.com
Thu Feb 21 23:51:37 PST 2013
xmlsecurity/source/xmlsec/certvalidity.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 931f62a52085d78f81a12f277808ff9cfc6c9078
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Mon Feb 18 04:59:34 2013 -0600
coverity#735579 Logically dead code
Change-Id: I68a1dc0926b1310b196212e0ec602cc9d78b43de
Reviewed-on: https://gerrit.libreoffice.org/2230
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/xmlsecurity/source/xmlsec/certvalidity.cxx b/xmlsecurity/source/xmlsec/certvalidity.cxx
index a2d8f43..dfe46fa 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 ) {
More information about the Libreoffice-commits
mailing list