summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngsvcmgr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index abce09198e26..d33a5936a8e4 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -860,7 +860,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames )
if (nKeyStart != -1)
aKeyText = rName.copy( nKeyStart + 1 );
DBG_ASSERT( !aKeyText.isEmpty(), "unexpected key (lang::Locale) string" );
- if (0 == rName.compareTo( aSpellCheckerList, aSpellCheckerList.getLength() ))
+ if (rName == aSpellCheckerList)
{
// delete old cached data, needs to be acquired new on demand
clearSvcInfoArray(pAvailSpellSvcs);
@@ -885,7 +885,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames )
pSpellDsp->SetServiceList( LanguageTag(nLang).getLocale(), aSvcImplNames );
}
}
- else if (0 == rName.compareTo( aGrammarCheckerList, aGrammarCheckerList.getLength() ))
+ else if (rName == aGrammarCheckerList)
{
// delete old cached data, needs to be acquired new on demand
clearSvcInfoArray(pAvailGrammarSvcs);
@@ -913,7 +913,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames )
}
}
}
- else if (0 == rName.compareTo( aHyphenatorList, aHyphenatorList.getLength() ))
+ else if (rName == aHyphenatorList)
{
// delete old cached data, needs to be acquired new on demand
clearSvcInfoArray(pAvailHyphSvcs);
@@ -938,7 +938,7 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames )
pHyphDsp->SetServiceList( LanguageTag(nLang).getLocale(), aSvcImplNames );
}
}
- else if (0 == rName.compareTo( aThesaurusList, aThesaurusList.getLength() ))
+ else if (rName == aThesaurusList)
{
// delete old cached data, needs to be acquired new on demand
clearSvcInfoArray(pAvailThesSvcs);