summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngsvcmgr.cxx10
-rw-r--r--linguistic/source/lngsvcmgr.hxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 3b7c5a44c610..b7fe11037c16 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -1733,7 +1733,7 @@ void SAL_CALL
}
-sal_Bool LngSvcMgr::SaveCfgSvcs( const String &rServiceName )
+sal_Bool LngSvcMgr::SaveCfgSvcs( const OUString &rServiceName )
{
SAL_INFO( "linguistic", "linguistic: LngSvcMgr::SaveCfgSvcs" );
@@ -1742,28 +1742,28 @@ sal_Bool LngSvcMgr::SaveCfgSvcs( const String &rServiceName )
LinguDispatcher *pDsp = 0;
uno::Sequence< lang::Locale > aLocales;
- if (0 == rServiceName.CompareToAscii( SN_SPELLCHECKER ))
+ if (rServiceName == SN_SPELLCHECKER)
{
if (!pSpellDsp)
GetSpellCheckerDsp_Impl();
pDsp = pSpellDsp;
aLocales = getAvailableLocales( SN_SPELLCHECKER );
}
- else if (0 == rServiceName.CompareToAscii( SN_GRAMMARCHECKER ))
+ else if (rServiceName == SN_GRAMMARCHECKER)
{
if (!pGrammarDsp)
GetGrammarCheckerDsp_Impl();
pDsp = pGrammarDsp;
aLocales = getAvailableLocales( SN_GRAMMARCHECKER );
}
- else if (0 == rServiceName.CompareToAscii( SN_HYPHENATOR ))
+ else if (rServiceName == SN_HYPHENATOR)
{
if (!pHyphDsp)
GetHyphenatorDsp_Impl();
pDsp = pHyphDsp;
aLocales = getAvailableLocales( SN_HYPHENATOR );
}
- else if (0 == rServiceName.CompareToAscii( SN_THESAURUS ))
+ else if (rServiceName == SN_THESAURUS)
{
if (!pThesDsp)
GetThesaurusDsp_Impl();
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx
index 0afdf5d5fbf3..a21ae825c672 100644
--- a/linguistic/source/lngsvcmgr.hxx
+++ b/linguistic/source/lngsvcmgr.hxx
@@ -129,7 +129,7 @@ class LngSvcMgr :
void SetCfgServiceLists( HyphenatorDispatcher &rHyphDsp );
void SetCfgServiceLists( ThesaurusDispatcher &rThesDsp );
- sal_Bool SaveCfgSvcs( const String &rServiceName );
+ sal_Bool SaveCfgSvcs( const OUString &rServiceName );
static void clearSvcInfoArray(SvcInfoArray *&rpInfo);