diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-28 18:07:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-29 12:14:02 +0200 |
commit | a612d738a8c909e18ed89675432ca42b376ef624 (patch) | |
tree | 67729979d1f7b14726dce15f3d44faaf54e28bde /sd/source/ui/annotations | |
parent | 415436ad27b4522102d3fbbb6003935871029fc6 (diff) |
loplugin:stringloop in sd
Change-Id: I5b0cd65b6e69490c79e0ac37c137283d19711787
Reviewed-on: https://gerrit.libreoffice.org/58252
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r-- | sd/source/ui/annotations/annotationtag.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx index 4c6a53b3c1a2..2572ea40b0b2 100644 --- a/sd/source/ui/annotations/annotationtag.cxx +++ b/sd/source/ui/annotations/annotationtag.cxx @@ -60,7 +60,7 @@ static const int DRGPIX = 2; // Drag MinMove i static OUString getInitials( const OUString& rName ) { - OUString sInitials; + OUStringBuffer sInitials; const sal_Unicode * pStr = rName.getStr(); sal_Int32 nLength = rName.getLength(); @@ -76,7 +76,7 @@ static OUString getInitials( const OUString& rName ) // take letter if( nLength ) { - sInitials += OUStringLiteral1( *pStr ); + sInitials.append(*pStr); nLength--; pStr++; } @@ -87,7 +87,7 @@ static OUString getInitials( const OUString& rName ) } } - return sInitials; + return sInitials.makeStringAndClear(); } class AnnotationDragMove : public SdrDragMove |