summaryrefslogtreecommitdiff
path: root/svl/source/misc
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 /svl/source/misc
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 'svl/source/misc')
-rw-r--r--svl/source/misc/lngmisc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/misc/lngmisc.cxx b/svl/source/misc/lngmisc.cxx
index 769d7832f5f8..019cbb556c65 100644
--- a/svl/source/misc/lngmisc.cxx
+++ b/svl/source/misc/lngmisc.cxx
@@ -38,8 +38,8 @@ namespace linguistic
bool RemoveHyphens(OUString &rTxt)
{
sal_Int32 n = rTxt.getLength();
- rTxt = comphelper::string::remove(rTxt, SVT_SOFT_HYPHEN);
- rTxt = comphelper::string::remove(rTxt, SVT_HARD_HYPHEN);
+ rTxt = rTxt.replaceAll(OUString(SVT_SOFT_HYPHEN), "");
+ rTxt = rTxt.replaceAll(OUString(SVT_HARD_HYPHEN), "");
return n != rTxt.getLength();
}