summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-11-29 22:06:02 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-12-01 18:31:47 +0100
commita672bebd8d2b1355fa83d28a8a01eaa7c37c56a7 (patch)
treebfc21af3f73ff14a499143c117c2c4521dee7fc9 /xmlsecurity
parent416ce6cca8cf1178239cfd603c4248e8ba044861 (diff)
xmlsecurity: clean-up code a bit
Reviewed-on: https://gerrit.libreoffice.org/64294 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 40d52cfe3b64e6bac035caed825486546bba5280) Change-Id: I4a43f1f33f73919f56150310e7d05244d81b7510
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
index 3389fd149086..6a44d20f7038 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
@@ -105,7 +105,7 @@ SAL_CALL XMLSignature_NssImpl::generate(
if( pSecEnv == nullptr )
throw RuntimeException() ;
- setErrorRecorder();
+ setErrorRecorder();
pMngr = pSecEnv->createKeysManager();
if( !pMngr ) {
@@ -271,14 +271,14 @@ OUString SAL_CALL XMLSignature_NssImpl::getImplementationName() {
}
/* XServiceInfo */
-sal_Bool SAL_CALL XMLSignature_NssImpl::supportsService( const OUString& serviceName) {
- Sequence< OUString > seqServiceNames = getSupportedServiceNames() ;
- const OUString* pArray = seqServiceNames.getConstArray() ;
- for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) {
- if( *( pArray + i ) == serviceName )
- return true ;
+sal_Bool SAL_CALL XMLSignature_NssImpl::supportsService(const OUString& rServiceName)
+{
+ for (OUString const & rCurrentServiceName : getSupportedServiceNames())
+ {
+ if (rCurrentServiceName == rServiceName)
+ return true;
}
- return false ;
+ return false;
}
/* XServiceInfo */