diff options
Diffstat (limited to 'linguistic/source/gciterator.cxx')
-rw-r--r-- | linguistic/source/gciterator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 62322ae67032..7aca99026250 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1093,7 +1093,7 @@ void GrammarCheckingIterator::GetConfiguredGCSvcs_Impl() uno::Any aTmp( xNA->getByName( pElementNames[i] ) ); if (aTmp >>= aImplNames) { - if (aImplNames.getLength() > 0) + if (aImplNames.hasElements()) { // only the first entry is used, there should be only one grammar checker per language const OUString aImplName( aImplNames[0] ); @@ -1149,7 +1149,7 @@ void GrammarCheckingIterator::SetServiceList( LanguageType nLanguage = LinguLocaleToLanguage( rLocale ); OUString aImplName; - if (rSvcImplNames.getLength() > 0) + if (rSvcImplNames.hasElements()) aImplName = rSvcImplNames[0]; // there is only one grammar checker per language if (!LinguIsUnspecified(nLanguage) && nLanguage != LANGUAGE_DONTKNOW) |