diff options
Diffstat (limited to 'scripting/source')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 4 | ||||
-rw-r--r-- | scripting/source/provider/ProviderCache.hxx | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 08c226a62ad6..7fa2a3d990b9 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -490,8 +490,8 @@ extern "C" css::uno::Reference< css::lang::XMultiServiceFactory > xServiceManager( static_cast< css::lang::XMultiServiceFactory* >( pServiceManager ) ) ; - if ( ::scripting_protocolhandler::ScriptProtocolHandler::impl_getStaticImplementationName().equals( - OUString::createFromAscii( pImplementationName ) ) ) + if ( ::scripting_protocolhandler::ScriptProtocolHandler::impl_getStaticImplementationName().equalsAscii( + pImplementationName ) ) { xFactory = ::scripting_protocolhandler::ScriptProtocolHandler::impl_createFactory( xServiceManager ); } diff --git a/scripting/source/provider/ProviderCache.hxx b/scripting/source/provider/ProviderCache.hxx index 48aa4828c9c6..75e062073c9f 100644 --- a/scripting/source/provider/ProviderCache.hxx +++ b/scripting/source/provider/ProviderCache.hxx @@ -71,14 +71,11 @@ private: createProvider( ProviderDetails& details ); bool isInBlackList( const OUString& serviceName ) { - if ( m_sBlackList.getLength() > 0 ) + for ( sal_Int32 index = 0; index < m_sBlackList.getLength(); index++ ) { - for ( sal_Int32 index = 0; index < m_sBlackList.getLength(); index++ ) + if ( m_sBlackList[ index ] == serviceName ) { - if ( m_sBlackList[ index ].equals( serviceName ) ) - { - return true; - } + return true; } } return false; |