diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:35:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:32 +0200 |
commit | 6ef8f9de0257b712d43634d389d8021c7bf67833 (patch) | |
tree | 1b9c22ece6da7d0e380a3b147cc248f727ca1d92 /xmlsecurity | |
parent | ba15d30e8d0bf74de621df9744a47fb768782a2e (diff) |
loplugin:simplifybool
Change-Id: I54f9e6d879c973c8d47226bd87a4b38404ed8f45
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx index 5329700f7587..27c12aeba9c0 100644 --- a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx @@ -204,7 +204,7 @@ OUString SAL_CALL X509Certificate_NssImpl :: getSubjectName() throw ( ::com::sun if( (*extns)->critical.data == NULL ) crit = false ; else - crit = ( (*extns)->critical.data[0] == 0xFF ) ? true : false ; + crit = (*extns)->critical.data[0] == 0xFF; pExtn->setCertExtn( (*extns)->value.data, (*extns)->value.len, reinterpret_cast<unsigned char *>(const_cast<char *>(objID.getStr())), objID.getLength(), crit ) ; xExtns[len] = pExtn ; @@ -238,7 +238,7 @@ OUString SAL_CALL X509Certificate_NssImpl :: getSubjectName() throw ( ::com::sun if( (*extns)->critical.data == NULL ) crit = false ; else - crit = ( (*extns)->critical.data[0] == 0xFF ) ? true : false ; + crit = (*extns)->critical.data[0] == 0xFF; pExtn->setCertExtn( (*extns)->value.data, (*extns)->value.len, (*extns)->id.data, (*extns)->id.len, crit ) ; break; } |