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 | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/spelldta.cxx | 5 | ||||
-rwxr-xr-x | linguistic/workben/makefile.mk | 1 | ||||
-rw-r--r-- | linguistic/workben/sspellimp.cxx | 8 |
3 files changed, 7 insertions, 7 deletions
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 <com/sun/star/uno/Reference.h> - #include <com/sun/star/linguistic2/SpellFailure.hpp> #include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp> +#include <comphelper/string.hxx> #include <tools/debug.hxx> #include <osl/mutex.hxx> @@ -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 <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; |