diff options
Diffstat (limited to 'sw/source/filter/html/swhtml.cxx')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 6e4f3b9993a6..ce6a79f8e0dd 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -2081,17 +2081,17 @@ void SwHTMLParser::NextToken( HtmlTokenId nToken ) if( bInsertUnknown ) { - OUString aComment("HTML: <"); + OUStringBuffer aComment("HTML: <"); if( (nToken >= HtmlTokenId::ONOFF_START) && isOffToken(nToken) ) - aComment += "/"; - aComment += sSaveToken; + aComment.append("/"); + aComment.append(sSaveToken); if( !aToken.isEmpty() ) { UnescapeToken(); - (aComment += " ") += aToken; + aComment.append(" ").append(aToken); } - aComment += ">"; - InsertComment( aComment ); + aComment.append(">"); + InsertComment( aComment.makeStringAndClear() ); } // if there are temporary paragraph attributes and the |