summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 05:41:38 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-08 05:42:05 +0100
commit19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch)
tree63533a5d8d9929602cd894391a0e4b232451ba69 /linguistic
parent9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff)
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
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);