summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:09:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 09:22:23 +0200
commit727200b81da0de810dfe623bf52575540f40adbe (patch)
tree3ba4786631faffd79bb20ae14a7b986a842aeda8 /basic
parent2113f3e7ee0ca5c07f224a54b627777b3a7b5fb0 (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 'basic')
-rw-r--r--basic/source/runtime/methods.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index f7d3f25f7185..8cb2b33436d1 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -3518,8 +3518,7 @@ void SbRtl_Shell(StarBASIC *, SbxArray & rPar, bool)
OUString tmp = rPar.Get(3)->GetOUString().trim();
if (!tmp.isEmpty())
{
- aCmdLine += " ";
- aCmdLine += tmp;
+ aCmdLine += " " + tmp;
}
}
else if( aCmdLine.isEmpty() )