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/workben/makefile.mk | 1 + linguistic/workben/sspellimp.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'linguistic/workben') 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