[Libreoffice-commits] core.git: sw/source
Willian Briotto
willianbriotto at gmail.com
Tue Dec 1 22:33:10 PST 2015
sw/source/filter/html/htmlftn.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit a454a9b3ae0f6ab81012fbef7b3ff6f0f44bf6cb
Author: Willian Briotto <willianbriotto at gmail.com>
Date: Sat Nov 21 19:56:06 2015 -0200
Remove some chained appends
Change-Id: I552432d7352e4ae4d6b0ef8fb72a6533407b46e4
Reviewed-on: https://gerrit.libreoffice.org/20124
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/sw/source/filter/html/htmlftn.cxx b/sw/source/filter/html/htmlftn.cxx
index 314a515..4354358 100644
--- a/sw/source/filter/html/htmlftn.cxx
+++ b/sw/source/filter/html/htmlftn.cxx
@@ -292,21 +292,21 @@ Writer& OutHTML_SwFormatFootnote( Writer& rWrt, const SfxPoolItem& rHt )
rHTMLWrt.m_pFootEndNotes->insert( rHTMLWrt.m_pFootEndNotes->begin() + nPos, pTextFootnote );
OStringBuffer sOut;
- sOut.append('<').append(OOO_STRING_SVTOOLS_HTML_anchor).append(' ')
- .append(OOO_STRING_SVTOOLS_HTML_O_class).append("=\"");
+ sOut.append("<" + OString(OOO_STRING_SVTOOLS_HTML_anchor) + " " +
+ OString(OOO_STRING_SVTOOLS_HTML_O_class) + "=\"");
rWrt.Strm().WriteCharPtr( sOut.makeStringAndClear().getStr() );
HTMLOutFuncs::Out_String( rWrt.Strm(), sClass, rHTMLWrt.m_eDestEnc, &rHTMLWrt.m_aNonConvertableCharacters );
- sOut.append("\" ").append(OOO_STRING_SVTOOLS_HTML_O_name).append("=\"");
+ sOut.append("\" " + OString(OOO_STRING_SVTOOLS_HTML_O_name) + "=\"");
rWrt.Strm().WriteCharPtr( sOut.makeStringAndClear().getStr() );
HTMLOutFuncs::Out_String( rWrt.Strm(), sFootnoteName, rHTMLWrt.m_eDestEnc, &rHTMLWrt.m_aNonConvertableCharacters );
- sOut.append(OOO_STRING_SVTOOLS_HTML_FTN_anchor).append("\" ")
- .append(OOO_STRING_SVTOOLS_HTML_O_href).append("=\"#");
+ sOut.append(OString(OOO_STRING_SVTOOLS_HTML_FTN_anchor) + "\" " +
+ OString(OOO_STRING_SVTOOLS_HTML_O_href) + "=\"#");
rWrt.Strm().WriteCharPtr( sOut.makeStringAndClear().getStr() );
HTMLOutFuncs::Out_String( rWrt.Strm(), sFootnoteName, rHTMLWrt.m_eDestEnc, &rHTMLWrt.m_aNonConvertableCharacters );
- sOut.append(OOO_STRING_SVTOOLS_HTML_FTN_symbol).append('\"');
+ sOut.append(OString(OOO_STRING_SVTOOLS_HTML_FTN_symbol) + "\"");
if( !rFormatFootnote.GetNumStr().isEmpty() )
- sOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_sdfixed);
- sOut.append('>');
+ sOut.append(" " + OString(OOO_STRING_SVTOOLS_HTML_O_sdfixed));
+ sOut.append(">");
rWrt.Strm().WriteCharPtr( sOut.makeStringAndClear().getStr() );
HTMLOutFuncs::Out_AsciiTag( rWrt.Strm(), OOO_STRING_SVTOOLS_HTML_superscript );
More information about the Libreoffice-commits
mailing list