summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 09:24:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 10:12:31 +0200
commitd7e06e46acc2ee17101cef63e59b9f5efcbfab14 (patch)
tree7f2ee4381babadafaaaf94e1ca210e1d98e5aa14 /scripting
parente47fda7d4759f4ac911c882881dba1eee539726c (diff)
use more OUString::operator== in scaddins..sdext
Change-Id: I8bc5c925f940283bc54698bbcba77efcca883273 Reviewed-on: https://gerrit.libreoffice.org/39937 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx4
-rw-r--r--scripting/source/provider/ProviderCache.hxx9
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;