summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlftn.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 15:24:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 18:54:15 +0200
commit4bef6511332073fbe3899fa2003caf88d9f2ac49 (patch)
treedca0d58c3fc86d6c88abc2a72fd91f149a917058 /sw/source/filter/html/htmlftn.cxx
parentc9dcd0a6197160fdc8bf086ae4d8a78558e7d078 (diff)
loplugin:stringloop in sw
Change-Id: Ie316aee8d1e4f772dc25725b46e130c6717458c2 Reviewed-on: https://gerrit.libreoffice.org/58331 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmlftn.cxx')
-rw-r--r--sw/source/filter/html/htmlftn.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index c8a50ae1f42d..2655f2756709 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -497,15 +497,15 @@ static void lcl_html_outFootEndNoteInfo( Writer& rWrt, OUString const *pParts,
{
SwHTMLWriter& rHTMLWrt = static_cast<SwHTMLWriter&>(rWrt);
- OUString aContent;
+ OUStringBuffer aContent;
for( int i=0; i<nParts; ++i )
{
OUString aTmp( pParts[i] );
aTmp = aTmp.replaceAll( "\\", "\\\\" );
aTmp = aTmp.replaceAll( ";", "\\;" );
if( i > 0 )
- aContent += ";";
- aContent += aTmp;
+ aContent.append(";");
+ aContent.append(aTmp);
}
rHTMLWrt.OutNewLine();
@@ -514,7 +514,7 @@ static void lcl_html_outFootEndNoteInfo( Writer& rWrt, OUString const *pParts,
.append(OOO_STRING_SVTOOLS_HTML_O_name).append("=\"").append(pName)
.append("\" ").append(OOO_STRING_SVTOOLS_HTML_O_content).append("=\"");
rWrt.Strm().WriteCharPtr( sOut.makeStringAndClear().getStr() );
- HTMLOutFuncs::Out_String( rWrt.Strm(), aContent, rHTMLWrt.m_eDestEnc, &rHTMLWrt.m_aNonConvertableCharacters );
+ HTMLOutFuncs::Out_String( rWrt.Strm(), aContent.makeStringAndClear(), rHTMLWrt.m_eDestEnc, &rHTMLWrt.m_aNonConvertableCharacters );
rWrt.Strm().WriteCharPtr( "\">" );
}