From 75997f13ee3a71d6c994392264b0190bd7bb6756 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Apr 2021 13:48:45 +0200 Subject: no need to create temporaries when appending number to O[U]StringBuffer Change-Id: I36d82423b5f75010552696a66cec7e53ee265ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114395 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/tools/ObjectIdentifier.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'chart2/source/tools') diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx index 64273763158e..608f4337a53e 100644 --- a/chart2/source/tools/ObjectIdentifier.cxx +++ b/chart2/source/tools/ObjectIdentifier.cxx @@ -525,7 +525,7 @@ OUString ObjectIdentifier::createParticleForCoordinateSystem( { aRet = ObjectIdentifier::createParticleForDiagram(); aRet.append(":CS="); - aRet.append( OUString::number( nCooSysIndex ) ); + aRet.append( nCooSysIndex ); break; } } @@ -553,7 +553,7 @@ OUString ObjectIdentifier::createParticleForCoordinateSystem( { aRet = ObjectIdentifier::createParticleForDiagram(); aRet.append(":CS="); - aRet.append( OUString::number( nCooSysIndex ) ); + aRet.append( nCooSysIndex ); break; } } @@ -607,15 +607,15 @@ OUString ObjectIdentifier::createParticleForSeries( OUStringBuffer aRet; aRet.append("D="); - aRet.append( OUString::number( nDiagramIndex ) ); + aRet.append( nDiagramIndex ); aRet.append(":CS="); - aRet.append( OUString::number( nCooSysIndex ) ); + aRet.append( nCooSysIndex ); aRet.append(":CT="); - aRet.append( OUString::number( nChartTypeIndex ) ); + aRet.append( nChartTypeIndex ); aRet.append(":"); aRet.append(getStringForType( OBJECTTYPE_DATA_SERIES )); aRet.append("="); - aRet.append( OUString::number( nSeriesIndex ) ); + aRet.append( nSeriesIndex ); return aRet.makeStringAndClear(); } @@ -1101,7 +1101,7 @@ OUString ObjectIdentifier::createChildParticleWithIndex( ObjectType eObjectType, if( !aRet.isEmpty() ) { aRet.append("="); - aRet.append(OUString::number(nIndex)); + aRet.append(nIndex); } return aRet.makeStringAndClear(); } -- cgit