summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-25 14:12:22 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-01-26 04:40:33 +0000
commitc221a1b93dd70a14b897c3a96b8e032cd97b9593 (patch)
treebb2d4a6bcd29d3ce4288b74a18d437930dd966bd
parent8eef38d87d5a876b9628355289ab6ddf9915db89 (diff)
coverity#1266508 Useless call (gold)
regression from commit 832e5aadbff006ec24959162c29756fe2b1982be Author: Caolán McNamara <caolanm@redhat.com> Date: Tue Oct 8 10:06:59 2013 +0100 Related: fdo#38838 remove UniString::SearchAndReplaceAll (cherry picked from commit 6cde3ff3dd646f51f37f2342863371db8de9087a) Conflicts: sw/source/filter/html/wrthtml.cxx Change-Id: If792925eddc9c640584a2e8fa313a4297a32c74c Reviewed-on: https://gerrit.libreoffice.org/14171 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sw/source/filter/html/wrthtml.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx
index 13add63752ed..f9d60e56f4bb 100644
--- a/sw/source/filter/html/wrthtml.cxx
+++ b/sw/source/filter/html/wrthtml.cxx
@@ -1170,8 +1170,7 @@ void SwHTMLWriter::OutImplicitMark( const OUString& rMark,
{
if( !rMark.isEmpty() && !aImplicitMarks.empty() )
{
- OUString sMark( rMark );
- sMark + OUString(cMarkSeparator) + OUString::createFromAscii(pMarkType);
+ OUString sMark(rMark + OUString(cMarkSeparator) + OUString::createFromAscii(pMarkType));
if( 0 != aImplicitMarks.erase( sMark ) )
{
OutAnchor(sMark.replace('?', '_')); // '?' causes problems in IE/Netscape 5