From c698cb4f2d7ad100b25e15558a7aef2314b44a99 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 24 Oct 2019 17:55:03 +0200 Subject: Manually clean up some string concatenation (that loplugin:stringadd didn't flag because of its conservative isSideEffectFree check) Change-Id: I109b1680a14540d8438eee82b45518e07611fdcd Reviewed-on: https://gerrit.libreoffice.org/81464 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sfx2/source/appl/shutdownicon.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index c0153cb12c8f..727c06d1e1bf 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -619,11 +619,7 @@ bool ShutdownIcon::IsQuickstarterInstalled() #ifdef _WIN32 OUString ShutdownIcon::getShortcutName() { - OUString aShortcutName(SfxResId(STR_QUICKSTART_LNKNAME) + ".lnk"); - - OUString aShortcut(GetAutostartFolderNameW32()); - aShortcut += "\\" + aShortcutName; - return aShortcut; + return GetAutostartFolderNameW32() + "\\" + SfxResId(STR_QUICKSTART_LNKNAME) + ".lnk"; } #endif // _WIN32 #endif -- cgit