From 03516c505eced337149782a67b2ad98c246929b3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Sep 2019 15:10:42 +0200 Subject: loplugin:stringadd in helpcompiler..oox Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5 Reviewed-on: https://gerrit.libreoffice.org/79889 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/languageguessing/guesslang.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index e25d51a413fa..89e16dcfd19b 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -191,8 +191,7 @@ 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_path(path); - conf_file_path += DEFAULT_CONF_FILE_NAME; + OString conf_file_path = path + DEFAULT_CONF_FILE_NAME; m_aGuesser.SetDBPath(conf_file_path.getStr(), path.getStr()); } -- cgit v1.2.3