summaryrefslogtreecommitdiff
path: root/scripting/source/provider
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/source/provider
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/source/provider')
-rw-r--r--scripting/source/provider/ProviderCache.hxx9
1 files changed, 3 insertions, 6 deletions
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;