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 --- helpcompiler/source/HelpLinker.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'helpcompiler/source') diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index b5a488f3dbc0..44444902eb71 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -737,8 +737,7 @@ void HelpLinker::main( std::vector &args, { //This part is used when compileExtensionHelp is called from the extensions manager. //If extension help is compiled using helplinker in the build process - OUString aIdxCaptionPathFileURL( *pOfficeHelpPath ); - aIdxCaptionPathFileURL += "/idxcaption.xsl"; + OUString aIdxCaptionPathFileURL = *pOfficeHelpPath + "/idxcaption.xsl"; OString aOStr_IdxCaptionPathFileURL( OUStringToOString ( aIdxCaptionPathFileURL, fs::getThreadTextEncoding() ) ); @@ -762,8 +761,7 @@ void HelpLinker::main( std::vector &args, //If extension help is compiled using helplinker in the build process //then -idxcontent must be supplied //This part is used when compileExtensionHelp is called from the extensions manager. - OUString aIdxContentPathFileURL( *pOfficeHelpPath ); - aIdxContentPathFileURL += "/idxcontent.xsl"; + OUString aIdxContentPathFileURL = *pOfficeHelpPath + "/idxcontent.xsl"; OString aOStr_IdxContentPathFileURL( OUStringToOString ( aIdxContentPathFileURL, fs::getThreadTextEncoding() ) ); -- cgit