From 5adadc599ff2b80f24be93196fc473d0e6682fe7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 6 Nov 2015 09:36:29 +0100 Subject: loplugin:stringconstant: elide explicit ctor usage (automatic rewrite) Change-Id: I068f052aff5d26c36c9a15dc66e1d6c00321005e --- linguistic/source/convdiclist.cxx | 2 +- linguistic/source/lngsvcmgr.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'linguistic/source') diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index 442e5d070c67..e277346658c0 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -400,7 +400,7 @@ ConvDicNameContainer & ConvDicList::GetNameContainer() if (!pNameContainer) { pNameContainer = new ConvDicNameContainer; - pNameContainer->AddConvDics( GetDictionaryWriteablePath(), OUString(CONV_DIC_EXT) ); + pNameContainer->AddConvDics( GetDictionaryWriteablePath(), CONV_DIC_EXT ); xNameContainer = pNameContainer; // access list of text conversion dictionaries to activate diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 742544af131a..ee3506c8a042 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1680,7 +1680,7 @@ void SAL_CALL if (bChanged) { pSpellDsp->SetServiceList( rLocale, rServiceImplNames ); - SaveCfgSvcs( OUString(SN_SPELLCHECKER) ); + SaveCfgSvcs( SN_SPELLCHECKER ); if (pListenerHelper && bChanged) pListenerHelper->AddLngSvcEvt( @@ -1697,7 +1697,7 @@ void SAL_CALL if (bChanged) { pGrammarDsp->SetServiceList( rLocale, rServiceImplNames ); - SaveCfgSvcs( OUString(SN_GRAMMARCHECKER) ); + SaveCfgSvcs( SN_GRAMMARCHECKER ); if (pListenerHelper && bChanged) pListenerHelper->AddLngSvcEvt( @@ -1713,7 +1713,7 @@ void SAL_CALL if (bChanged) { pHyphDsp->SetServiceList( rLocale, rServiceImplNames ); - SaveCfgSvcs( OUString(SN_HYPHENATOR) ); + SaveCfgSvcs( SN_HYPHENATOR ); if (pListenerHelper && bChanged) pListenerHelper->AddLngSvcEvt( @@ -1729,7 +1729,7 @@ void SAL_CALL if (bChanged) { pThesDsp->SetServiceList( rLocale, rServiceImplNames ); - SaveCfgSvcs( OUString(SN_THESAURUS) ); + SaveCfgSvcs( SN_THESAURUS ); } } } -- cgit v1.2.3