summaryrefslogtreecommitdiff
path: root/scripting/source/provider/ProviderCache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/ProviderCache.cxx')
-rw-r--r--scripting/source/provider/ProviderCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx
index f669a9cc3a31..cf54ea0aee22 100644
--- a/scripting/source/provider/ProviderCache.cxx
+++ b/scripting/source/provider/ProviderCache.cxx
@@ -148,7 +148,7 @@ ProviderCache::populateCache()
Sequence< OUString > serviceNames = xServiceInfo->getSupportedServiceNames();
- if ( serviceNames.getLength() > 0 )
+ if ( serviceNames.hasElements() )
{
for ( sal_Int32 index = 0; index < serviceNames.getLength(); index++ )
{