summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-25 14:12:22 +0000
committerAndras Timar <andras.timar@collabora.com>2015-02-06 13:13:31 +0100
commit7457b57522bfa4f2d442fd6aa969fa4fcda531e5 (patch)
tree480d690497e591d02aa8aa6b680ba3dc14726338 /sw/source
parent39fc78ef1fbc85afba786f035108350266136abf (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/14172 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sw/source')
-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 b3a563a099df..daab896e37e7 100644
--- a/sw/source/filter/html/wrthtml.cxx
+++ b/sw/source/filter/html/wrthtml.cxx
@@ -1137,8 +1137,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