summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-23 17:38:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-23 20:33:17 +0200
commit044eba71e34fd3ac5de20578cc62f85756ad07b4 (patch)
treead3626d1e6cb3ff09ddc24014c26dddd4ab594b2 /sfx2
parent732bf455279d1db150c600bb1d2719ddde517480 (diff)
loplugin:stringadd (clang-cl)
Change-Id: I324496ff7c61d87a83b6b378810aa5c78cd7dba3 Reviewed-on: https://gerrit.libreoffice.org/81405 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/shutdownicon.cxx6
-rw-r--r--sfx2/source/appl/shutdowniconw32.cxx6
2 files changed, 4 insertions, 8 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index f56169ecd1ec..ffda878b33c0 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -620,12 +620,10 @@ bool ShutdownIcon::IsQuickstarterInstalled()
OUString ShutdownIcon::getShortcutName()
{
#ifdef _WIN32
- OUString aShortcutName(SfxResId(STR_QUICKSTART_LNKNAME));
- aShortcutName += ".lnk";
+ OUString aShortcutName(SfxResId(STR_QUICKSTART_LNKNAME) + ".lnk");
OUString aShortcut(GetAutostartFolderNameW32());
- aShortcut += "\\";
- aShortcut += aShortcutName;
+ aShortcut += "\\" + aShortcutName;
return aShortcut;
#endif // _WIN32
}
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index deea7b4373f5..dec949151d5d 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -784,8 +784,7 @@ bool ShutdownIcon::IsQuickstarterInstalled()
if( i != -1 )
aOfficepath = aOfficepath.copy(0, i);
- OUString quickstartExe(aOfficepath);
- quickstartExe += "\\quickstart.exe";
+ OUString quickstartExe(aOfficepath + "\\quickstart.exe");
return FileExistsW( o3tl::toW(quickstartExe.getStr()) );
}
@@ -800,8 +799,7 @@ void ShutdownIcon::EnableAutostartW32( const OUString &aShortcut )
if( i != -1 )
aOfficepath = aOfficepath.copy(0, i);
- OUString quickstartExe(aOfficepath);
- quickstartExe += "\\quickstart.exe";
+ OUString quickstartExe(aOfficepath + "\\quickstart.exe");
CreateShortcut( quickstartExe, aOfficepath, aShortcut, OUString(), OUString() );
}