diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:09:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 09:22:23 +0200 |
commit | 727200b81da0de810dfe623bf52575540f40adbe (patch) | |
tree | 3ba4786631faffd79bb20ae14a7b986a842aeda8 /comphelper | |
parent | 2113f3e7ee0ca5c07f224a54b627777b3a7b5fb0 (diff) |
loplugin:stringadd in basctl..cui
Change-Id: I2fdeb7eb3ead3512ad6d3fe793305038ab3aa7ae
Reviewed-on: https://gerrit.libreoffice.org/79886
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/backupfilehelper.cxx | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index 268432df3c99..97c1e9d109d6 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -187,14 +187,11 @@ namespace if (!rURL.isEmpty() && !rName.isEmpty()) { - aRetval = rURL; - aRetval += "/"; - aRetval += rName; + aRetval = rURL + "/" + rName; if (!rExt.isEmpty()) { - aRetval += "."; - aRetval += rExt; + aRetval += "." + rExt; } } @@ -207,10 +204,7 @@ namespace if (!rURL.isEmpty() && !rName.isEmpty()) { - aRetval = rURL; - aRetval += "/"; - aRetval += rName; - aRetval += ".pack"; + aRetval = rURL + "/" + rName + ".pack"; } return aRetval; @@ -309,8 +303,7 @@ namespace if (!file.second.isEmpty()) { - aNewFileURL += "."; - aNewFileURL += file.second; + aNewFileURL += "." + file.second; } bError |= (osl::FileBase::E_None != osl::File::remove(aNewFileURL)); @@ -368,8 +361,7 @@ namespace if (!file.second.isEmpty()) { - aSourceFileURL += "."; - aSourceFileURL += file.second; + aSourceFileURL += "." + file.second; } if (fileExists(aSourceFileURL)) @@ -378,8 +370,7 @@ namespace if (!file.second.isEmpty()) { - aTargetFileURL += "."; - aTargetFileURL += file.second; + aTargetFileURL += "." +file.second; } if (fileExists(aTargetFileURL)) |