diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 21:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:02 +0000 |
commit | ca02d728082a86780d68ede7b9d565128dbc0434 (patch) | |
tree | 8c0a857ad73f89d592295f99e5f72a0c96e55e57 /linguistic/workben | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'linguistic/workben')
-rwxr-xr-x | linguistic/workben/makefile.mk | 1 | ||||
-rw-r--r-- | linguistic/workben/sspellimp.cxx | 8 |
2 files changed, 5 insertions, 4 deletions
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 <com/sun/star/uno/Reference.h> #include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp> - #include <com/sun/star/linguistic2/SpellFailure.hpp> -#include <cppuhelper/factory.hxx> // helper for factories #include <com/sun/star/registry/XRegistryKey.hpp> +#include <comphelper/string.hxx> +#include <cppuhelper/factory.hxx> // helper for factories #include <tools/debug.hxx> #include <osl/mutex.hxx> @@ -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; |