diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-21 13:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-22 21:42:14 +0200 |
commit | 75997f13ee3a71d6c994392264b0190bd7bb6756 (patch) | |
tree | 4dc35a2e62e41d4b1f7953367419ff3fb072635f /svx | |
parent | b546af03ab9e371c70ce72562bc0a492972a8585 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 10 | ||||
-rw-r--r-- | svx/source/table/accessiblecell.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 963ee43d65af..a7f5ba78c4a3 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -823,9 +823,9 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const S OString handleArrayStr; aExtraInfo.append("{\"id\":\""); - aExtraInfo.append(OString::number(reinterpret_cast<sal_IntPtr>(pO))); + aExtraInfo.append(reinterpret_cast<sal_IntPtr>(pO)); aExtraInfo.append("\",\"type\":"); - aExtraInfo.append(OString::number(pO->GetObjIdentifier())); + aExtraInfo.append(static_cast<sal_Int32>(pO->GetObjIdentifier())); // In core, the gridOffset is calculated based on the LogicRect's TopLeft coordinate // In online, we have the SnapRect and we calculate it based on its TopLeft coordinate @@ -842,9 +842,9 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const S if (convertMapMode) p = OutputDevice::LogicToLogic(p, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip)); aExtraInfo.append(",\"gridOffsetX\":"); - aExtraInfo.append(OString::number(p.getX())); + aExtraInfo.append(p.getX()); aExtraInfo.append(",\"gridOffsetY\":"); - aExtraInfo.append(OString::number(p.getY())); + aExtraInfo.append(p.getY()); } if (bWriterGraphic) @@ -909,7 +909,7 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const S aDragParameters[0] = 100; aExtraInfo.append(", \"initialOffset\": "); - aExtraInfo.append(OString::number(aDragParameters[0])); + aExtraInfo.append(static_cast<sal_Int32>(aDragParameters[0])); // drag direction constraint Point aMinPos(aDragParameters[1], aDragParameters[2]); diff --git a/svx/source/table/accessiblecell.cxx b/svx/source/table/accessiblecell.cxx index 3ea43a4032a0..a26bb819481e 100644 --- a/svx/source/table/accessiblecell.cxx +++ b/svx/source/table/accessiblecell.cxx @@ -551,7 +551,7 @@ OUString AccessibleCell::getCellName( sal_Int32 nCol, sal_Int32 nRow ) static_cast<sal_uInt16>(nCol))); aBuf.append(comphelper::string::reverseString(aStr.makeStringAndClear())); } - aBuf.append( OUString::number(nRow+1) ); + aBuf.append(nRow+1); return aBuf.makeStringAndClear(); } |