diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-16 14:06:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-16 15:05:58 +0100 |
commit | c8907b19dc04a57b74cfc14dc641ac41177e2142 (patch) | |
tree | abd7d18e2faa6f995144d40a72e06a04eae034ac /sw/source/filter/html/swhtml.cxx | |
parent | 11300c48d4350c2f6748a1ca04b919cfae338d41 (diff) |
loplugin:buriedassign in sw
Change-Id: If2adf22a0ac3e030fca1b4ecd0173cac58f0f21e
Reviewed-on: https://gerrit.libreoffice.org/63470
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 |