summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMeryem Ezber <meryemezber.me@gmail.com>2019-02-10 16:59:42 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-02-11 08:51:51 +0100
commit2edaadce0dedbee5d4a8213ea06d04cfc3c6cf55 (patch)
tree39b839b779839a8c05f4c238bcfcf26e74c39e19 /chart2
parentf76bf262a60c154684ffefbd53a5339fa3864e42 (diff)
tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
Change-Id: Icfedb77943721f0ed7504ec68c3b63c4709352bc Reviewed-on: https://gerrit.libreoffice.org/67615 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 3b358ddc946e..b4d03c173382 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -580,13 +580,10 @@ OUString ObjectIdentifier::createParticleForGrid(
sal_Int32 nDimensionIndex
, sal_Int32 nAxisIndex )
{
- OUStringBuffer aRet("Axis=");
- aRet.append( OUString::number( nDimensionIndex ) );
- aRet.append(",");
- aRet.append( OUString::number( nAxisIndex ) );
- aRet.append( ":Grid=0" );
+ OUString aRet = "Axis=" + OUString::number( nDimensionIndex )
+ + "," + OUString::number( nAxisIndex ) + ":Grid=0";
- return aRet.makeStringAndClear();
+ return aRet;
}
OUString ObjectIdentifier::createClassifiedIdentifierForGrid(