From ca02d728082a86780d68ede7b9d565128dbc0434 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Nov 2011 21:03:31 +0000 Subject: remove [Byte]String::EraseAllChars --- linguistic/source/spelldta.cxx | 5 ++--- linguistic/workben/makefile.mk | 1 + linguistic/workben/sspellimp.cxx | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx index 681f2ada74ab..7c8ba798369d 100644 --- a/linguistic/source/spelldta.cxx +++ b/linguistic/source/spelldta.cxx @@ -29,9 +29,9 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_linguistic.hxx" #include - #include #include +#include #include #include @@ -107,9 +107,8 @@ void SearchSimilarText( const OUString &rText, sal_Int16 nLanguage, String aEntryTxt; if (pEntries[k].is()) { - aEntryTxt = pEntries[k]->getDictionaryWord(); // remove characters used to determine hyphenation positions - aEntryTxt.EraseAllChars( '=' ); + aEntryTxt = comphelper::string::remove(pEntries[k]->getDictionaryWord(), '='); } if (aEntryTxt.Len() > 0 && LevDistance( rText, aEntryTxt ) <= 2) rDicListProps.push_back( aEntryTxt ); diff --git a/linguistic/workben/makefile.mk b/linguistic/workben/makefile.mk index 6c04929d7b73..9df85c75140b 100755 --- a/linguistic/workben/makefile.mk +++ b/linguistic/workben/makefile.mk @@ -75,6 +75,7 @@ SLOFILES= \ SHL1TARGET= $(TARGET)$(DLLPOSTFIX) SHL1STDLIBS= \ + $(COMPHELPERLIB) \ $(CPPULIB) \ $(CPPUHELPERLIB) \ $(TOOLSLIB) \ diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx index d051bd3ee9c9..bf0c8a07edb0 100644 --- a/linguistic/workben/sspellimp.cxx +++ b/linguistic/workben/sspellimp.cxx @@ -30,10 +30,10 @@ #include "precompiled_linguistic.hxx" #include #include - #include -#include // helper for factories #include +#include +#include // helper for factories #include #include @@ -242,8 +242,8 @@ Reference< XSpellAlternatives > aAlt2( aTmp ); aAlt1.SearchAndReplaceAll( (sal_Unicode) 'x', (sal_Unicode) 'u'); aAlt1.SearchAndReplaceAll( (sal_Unicode) 'X', (sal_Unicode) 'U'); - aAlt2.EraseAllChars( (sal_Unicode) 'x' ); - aAlt2.EraseAllChars( (sal_Unicode) 'X' ); + aAlt2 = comphelper::string::remove(aAlt2, 'x'); + aAlt2 = comphelper::string::remove(aAlt2, 'X'); pStr[0] = aAlt1; pStr[1] = aAlt2; -- cgit