Kaydet (Commit) 97607596 authored tarafından Noel Grandin's avatar Noel Grandin

convert linguistic/source/lngsvcmgr.hxx from String to OUString

Change-Id: If9fd76687e1e361a6b29fe206edffd67a16cbb7f
üst b2ff26cc
...@@ -1733,7 +1733,7 @@ void SAL_CALL ...@@ -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" ); SAL_INFO( "linguistic", "linguistic: LngSvcMgr::SaveCfgSvcs" );
...@@ -1742,28 +1742,28 @@ sal_Bool LngSvcMgr::SaveCfgSvcs( const String &rServiceName ) ...@@ -1742,28 +1742,28 @@ sal_Bool LngSvcMgr::SaveCfgSvcs( const String &rServiceName )
LinguDispatcher *pDsp = 0; LinguDispatcher *pDsp = 0;
uno::Sequence< lang::Locale > aLocales; uno::Sequence< lang::Locale > aLocales;
if (0 == rServiceName.CompareToAscii( SN_SPELLCHECKER )) if (rServiceName == SN_SPELLCHECKER)
{ {
if (!pSpellDsp) if (!pSpellDsp)
GetSpellCheckerDsp_Impl(); GetSpellCheckerDsp_Impl();
pDsp = pSpellDsp; pDsp = pSpellDsp;
aLocales = getAvailableLocales( SN_SPELLCHECKER ); aLocales = getAvailableLocales( SN_SPELLCHECKER );
} }
else if (0 == rServiceName.CompareToAscii( SN_GRAMMARCHECKER )) else if (rServiceName == SN_GRAMMARCHECKER)
{ {
if (!pGrammarDsp) if (!pGrammarDsp)
GetGrammarCheckerDsp_Impl(); GetGrammarCheckerDsp_Impl();
pDsp = pGrammarDsp; pDsp = pGrammarDsp;
aLocales = getAvailableLocales( SN_GRAMMARCHECKER ); aLocales = getAvailableLocales( SN_GRAMMARCHECKER );
} }
else if (0 == rServiceName.CompareToAscii( SN_HYPHENATOR )) else if (rServiceName == SN_HYPHENATOR)
{ {
if (!pHyphDsp) if (!pHyphDsp)
GetHyphenatorDsp_Impl(); GetHyphenatorDsp_Impl();
pDsp = pHyphDsp; pDsp = pHyphDsp;
aLocales = getAvailableLocales( SN_HYPHENATOR ); aLocales = getAvailableLocales( SN_HYPHENATOR );
} }
else if (0 == rServiceName.CompareToAscii( SN_THESAURUS )) else if (rServiceName == SN_THESAURUS)
{ {
if (!pThesDsp) if (!pThesDsp)
GetThesaurusDsp_Impl(); GetThesaurusDsp_Impl();
......
...@@ -129,7 +129,7 @@ class LngSvcMgr : ...@@ -129,7 +129,7 @@ class LngSvcMgr :
void SetCfgServiceLists( HyphenatorDispatcher &rHyphDsp ); void SetCfgServiceLists( HyphenatorDispatcher &rHyphDsp );
void SetCfgServiceLists( ThesaurusDispatcher &rThesDsp ); void SetCfgServiceLists( ThesaurusDispatcher &rThesDsp );
sal_Bool SaveCfgSvcs( const String &rServiceName ); sal_Bool SaveCfgSvcs( const OUString &rServiceName );
static void clearSvcInfoArray(SvcInfoArray *&rpInfo); static void clearSvcInfoArray(SvcInfoArray *&rpInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment