diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/spelldta.cxx | 2 | ||||
-rw-r--r-- | linguistic/workben/sspellimp.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index 34027d95eb2c..7b97f500d9de 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -96,7 +96,7 @@ void SearchSimilarText( const OUString &rText, sal_Int16 nLanguage, if (pEntries[k].is()) { // remove characters used to determine hyphenation positions - aEntryTxt = comphelper::string::remove(pEntries[k]->getDictionaryWord(), '='); + aEntryTxt = pEntries[k]->getDictionaryWord().replaceAll("=", ""); } if (!aEntryTxt.isEmpty() && aEntryTxt.getLength() > 1 && LevDistance( rText, aEntryTxt ) <= 2) rDicListProps.push_back( aEntryTxt ); diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx index 2cc3f46921bf..56d3ffc7810a 100644 --- a/linguistic/workben/sspellimp.cxx +++ b/linguistic/workben/sspellimp.cxx @@ -229,8 +229,7 @@ Reference< XSpellAlternatives > aAlt2( aTmp ); aAlt1.SearchAndReplaceAll( (sal_Unicode) 'x', (sal_Unicode) 'u'); aAlt1.SearchAndReplaceAll( (sal_Unicode) 'X', (sal_Unicode) 'U'); - aAlt2 = comphelper::string::remove(aAlt2, 'x'); - aAlt2 = comphelper::string::remove(aAlt2, 'X'); + aAlt2 = aAlt2.replaceAll("x", "").replaceAll("X", ""); pStr[0] = aAlt1; pStr[1] = aAlt2; |