[Libreoffice-commits] core.git: chart2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Feb 11 12:05:41 UTC 2019
chart2/source/tools/ObjectIdentifier.cxx | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
New commits:
commit 2dd7aba7564a222c2acbac22975a76a6ab33c41f
Author: Meryem Ezber <meryemezber.me at gmail.com>
AuthorDate: Mon Feb 11 11:53:09 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Feb 11 13:05:20 2019 +0100
tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I4446858ed30df4adffbf18ab609c95690cff99c0
Reviewed-on: https://gerrit.libreoffice.org/67668
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index b4d03c173382..256be65e535f 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -699,16 +699,12 @@ OUString ObjectIdentifier::createPieSegmentDragParameterString(
, const awt::Point& rMinimumPosition
, const awt::Point& rMaximumPosition )
{
- OUStringBuffer aRet( OUString::number( nOffsetPercent ) );
- aRet.append( ',');
- aRet.append( OUString::number( rMinimumPosition.X ) );
- aRet.append( ',');
- aRet.append( OUString::number( rMinimumPosition.Y ) );
- aRet.append( ',');
- aRet.append( OUString::number( rMaximumPosition.X ) );
- aRet.append( ',');
- aRet.append( OUString::number( rMaximumPosition.Y ) );
- return aRet.makeStringAndClear();
+ OUString aRet = OUString::number( nOffsetPercent )
+ + "," + OUString::number( rMinimumPosition.X )
+ + "," + OUString::number( rMinimumPosition.Y )
+ + "," + OUString::number( rMaximumPosition.X )
+ + "," + OUString::number( rMaximumPosition.Y );
+ return aRet;
}
bool ObjectIdentifier::parsePieSegmentDragParameterString(
More information about the Libreoffice-commits
mailing list