summaryrefslogtreecommitdiff
path: root/svl/source/misc
diff options
context:
space:
mode:
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();
}