summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxexec.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 17:16:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-27 11:35:24 +0200
commitb83cc2b0108a4ec2087221a6150a66578788e5b4 (patch)
treeb3684057b66602ddf01546dcb8306fddbad69a38 /basic/source/sbx/sbxexec.cxx
parent86be39afd5b142f7cbdbe0107b394c5924c414cc (diff)
loplugin:stringloop in basic, framework, sax, svtools
Change-Id: I2bad74a8f103e9dc68c8e0d0e6315697068d2f6d Reviewed-on: https://gerrit.libreoffice.org/58135 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/sbx/sbxexec.cxx')
-rw-r--r--basic/source/sbx/sbxexec.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx
index a74cdf5c2655..7f177c27814d 100644
--- a/basic/source/sbx/sbxexec.cxx
+++ b/basic/source/sbx/sbxexec.cxx
@@ -140,7 +140,7 @@ static SbxVariableRef Operand
else if( !bVar && *p == '"' )
{
// A string
- OUString aString;
+ OUStringBuffer aString;
p++;
for( ;; )
{
@@ -157,9 +157,9 @@ static SbxVariableRef Operand
break;
}
}
- aString += OUStringLiteral1(*p++);
+ aString.append(*p++);
}
- refVar->PutString( aString );
+ refVar->PutString( aString.makeStringAndClear() );
}
else
{