diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-10 16:38:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-11 09:45:40 +0200 |
commit | 976075964e381bd277cd432d3e66ef75844068ea (patch) | |
tree | 45a7cf3ec4ff1e7ef19dda93b1b18d6610dbc03d | |
parent | b2ff26cc4e9a012b67c7244ee75ab98898d02827 (diff) |
convert linguistic/source/lngsvcmgr.hxx from String to OUString
Change-Id: If9fd76687e1e361a6b29fe206edffd67a16cbb7f
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 10 | ||||
-rw-r--r-- | linguistic/source/lngsvcmgr.hxx | 2 |
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); |