summaryrefslogtreecommitdiff
path: root/sd/source/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-28 18:07:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-29 12:14:02 +0200
commita612d738a8c909e18ed89675432ca42b376ef624 (patch)
tree67729979d1f7b14726dce15f3d44faaf54e28bde /sd/source/filter
parent415436ad27b4522102d3fbbb6003935871029fc6 (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/filter')
-rw-r--r--sd/source/filter/eppt/eppt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 395fb50b2677..28edf2321323 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -1046,7 +1046,7 @@ bool PPTWriter::ImplCreateMainNotes()
static OUString getInitials( const OUString& rName )
{
- OUString sInitials;
+ OUStringBuffer sInitials;
const sal_Unicode * pStr = rName.getStr();
sal_Int32 nLength = rName.getLength();
@@ -1062,7 +1062,7 @@ static OUString getInitials( const OUString& rName )
// take letter
if( nLength )
{
- sInitials += OUStringLiteral1( *pStr );
+ sInitials.append( *pStr );
nLength--; pStr++;
}
@@ -1073,7 +1073,7 @@ static OUString getInitials( const OUString& rName )
}
}
- return sInitials;
+ return sInitials.makeStringAndClear();
}
void ImplExportComments( const uno::Reference< drawing::XDrawPage >& xPage, SvMemoryStream& rBinaryTagData10Atom )