From 71112060e0930fc58087c3762e836b1e12b60f75 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Jun 2017 10:27:38 +0200 Subject: loplugin:oncevar various Change-Id: I8b82d46d4688b1a59d6fe1b05da7d5c8dfc13ca6 Reviewed-on: https://gerrit.libreoffice.org/38766 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/languageguessing/guesslang.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lingucomponent/source') diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 556779504f75..85e041813205 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -194,9 +194,8 @@ void LangGuess_Impl::SetFingerPrintsDB( { //! text encoding for file name / path needs to be in the same encoding the OS uses OString path = OUStringToOString( filePath, osl_getThreadTextEncoding() ); - OString conf_file_name( DEFAULT_CONF_FILE_NAME ); OString conf_file_path(path); - conf_file_path += conf_file_name; + conf_file_path += DEFAULT_CONF_FILE_NAME; m_aGuesser.SetDBPath(conf_file_path.getStr(), path.getStr()); } -- cgit