diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-10 09:29:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-10 10:23:24 +0200 |
commit | de93cab9ba01d5bd8ebbfe8be09789ec0b7a7ea0 (patch) | |
tree | 6badcf2c11c1ed14b080c273d53e092189a96583 | |
parent | 37fe8619728b2179e6c1d3f25eeee85755dcd40a (diff) |
x.insert(x.getLength() -> x.append
Change-Id: I865dbca65a5b29e35f90070dc743c42289598d9d
Reviewed-on: https://gerrit.libreoffice.org/80588
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdtrans.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 528af23ac7e1..c9977fd44ff1 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -818,7 +818,7 @@ bool SdrAngleItem::GetPresentation( aText.insert(0, '-'); } - aText.insert(aText.getLength(), sal_Unicode(DEGREE_CHAR)); + aText.append(sal_Unicode(DEGREE_CHAR)); if(ePres == SfxItemPresentation::Complete) { diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index 49e6f0cf2929..af98fec68d0c 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -828,7 +828,7 @@ OUString SdrFormatter::GetStr(long nVal) const } if(aStr.isEmpty()) - aStr.insert(aStr.getLength(), aNullCode); + aStr.append(aNullCode); if(bNeg && (aStr.getLength() > 1 || aStr[0] != aNullCode[0])) { |