diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 12:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-14 12:39:20 +0200 |
commit | daf177f703081d7afaa9b1701cf187c9a3e93ee5 (patch) | |
tree | 32e5bc14b5707777795ac26089c402cc3e93c2e3 /xmlsecurity/source/helper/documentsignaturehelper.cxx | |
parent | 3ef7e85deb7afde6c9453c30be0a7893528a90a1 (diff) |
use more OUString::operator== in test..xmlsecurity
Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562
Reviewed-on: https://gerrit.libreoffice.org/39685
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/helper/documentsignaturehelper.cxx')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturehelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index 1eecea496128..a9515c18a9e5 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -112,8 +112,8 @@ void ImplFillElementList( if ( rxStore->isStreamElement( pNames[n] ) ) { //Exclude documentsignatures.xml! - if (pNames[n].equals( - DocumentSignatureHelper::GetDocumentContentSignatureDefaultStreamName())) + if (pNames[n] == + DocumentSignatureHelper::GetDocumentContentSignatureDefaultStreamName()) continue; OUString aFullName( rRootStorageName + sEncName ); rList.push_back(aFullName); @@ -459,7 +459,7 @@ bool DocumentSignatureHelper::checkIfAllFilesAreSigned( sElementListURI, rtl_UriCharClassPchar, rtl_UriEncodeCheckEscapes, RTL_TEXTENCODING_UTF8); } - if (sElementListURI.equals(sReferenceURI)) + if (sElementListURI == sReferenceURI) { nRealCount++; break; @@ -508,7 +508,7 @@ bool DocumentSignatureHelper::equalsReferenceUriManifestPath( //Decode the uri segment, so that %20 becomes ' ', etc. OUString sDecUri = ::rtl::Uri::decode( *i, rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8); - if (!sDecUri.equals(*j)) + if (sDecUri != *j) { retVal = false; break; |