diff options
Diffstat (limited to 'scripting/source/provider/ProviderCache.cxx')
-rw-r--r-- | scripting/source/provider/ProviderCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx index ec5209cda795..71bba4c84e29 100644 --- a/scripting/source/provider/ProviderCache.cxx +++ b/scripting/source/provider/ProviderCache.cxx @@ -159,7 +159,7 @@ ProviderCache::populateCache() throw ( RuntimeException ) for ( sal_Int32 index = 0; index < serviceNames.getLength(); index++ ) { - if ( serviceNames[ index ].indexOf( searchString ) == 0 && !isInBlackList( serviceNames[ index ] ) ) + if ( serviceNames[ index ].startsWith( searchString ) && !isInBlackList( serviceNames[ index ] ) ) { serviceName = serviceNames[ index ]; ProviderDetails details; |