summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/swhtml.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-01 13:20:11 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-04 06:49:52 +0000
commit7855ea48309ee2ba06ee5f3d5dac27ecfc4ca4a6 (patch)
tree359d2a334303f6e32582981efef6e6e0d6b69e01 /sw/source/filter/html/swhtml.cxx
parentcd71034b26a404c8f9b763865ef6ebdd0adeebb7 (diff)
remove comphelper::string::remove
and replace it with OUString/OString::replaceAll Change-Id: I37b1c3b51251dfd9d749d6f1060c75b3a93d7f1a Reviewed-on: https://gerrit.libreoffice.org/26850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/filter/html/swhtml.cxx')
-rw-r--r--sw/source/filter/html/swhtml.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 0f8c49a312a3..fe2fd8be6361 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -377,8 +377,7 @@ SwHTMLParser::SwHTMLParser( SwDoc* pD, SwPaM& rCursor, SvStream& rIn,
OUString sCmp;
if (nPos)
{
- sCmp = comphelper::string::remove(
- m_sJmpMark.copy(nPos + 1), ' ');
+ sCmp = m_sJmpMark.copy(nPos + 1).replaceAll(" ", "");
}
if( !sCmp.isEmpty() )
@@ -5386,8 +5385,7 @@ void SwHTMLParser::ParseMoreMetaOptions()
aName.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_META_content_script_type ) )
return;
- aContent = comphelper::string::remove(aContent, '\r');
- aContent = comphelper::string::remove(aContent, '\n');
+ aContent = aContent.replaceAll("\r", "").replaceAll("\n", "");
if( aName.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_META_sdendnote ) )
{