Kaydet (Commit) a672bebd authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

xmlsecurity: clean-up code a bit

Reviewed-on: https://gerrit.libreoffice.org/64294
Tested-by: Jenkins
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 40d52cfe)

Change-Id: I4a43f1f33f73919f56150310e7d05244d81b7510
üst 416ce6cc
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment