[Libreoffice-commits] core.git: svx/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 10 08:23:58 UTC 2019


 svx/source/svdraw/svdattr.cxx  |    2 +-
 svx/source/svdraw/svdtrans.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit de93cab9ba01d5bd8ebbfe8be09789ec0b7a7ea0
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Oct 10 09:29:16 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Oct 10 10:23:24 2019 +0200

    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 at collabora.co.uk>

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]))
     {


More information about the Libreoffice-commits mailing list