summaryrefslogtreecommitdiff
path: root/linguistic/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-03 12:09:30 +0200
committerNoel Grandin <noel@peralex.com>2013-12-04 08:55:34 +0200
commit39c8524f7d9180fe500e1b5d9a272cabd72399e9 (patch)
tree79d760584089b46063d3655d6813b405f9230588 /linguistic/workben
parentaa4a39c9d754d0f7e953a3a642db5ad15053c63f (diff)
remove some STRING_NOTFOUND usage
from old, probably dead code. Completely untested. But at least it's not in my grep results anymore. Change-Id: I9d917d0558bcab25a48fa36140beaa92150b62c9
Diffstat (limited to 'linguistic/workben')
-rw-r--r--linguistic/workben/sspellimp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx
index 77c8820d3634..e9cd7d9490f0 100644
--- a/linguistic/workben/sspellimp.cxx
+++ b/linguistic/workben/sspellimp.cxx
@@ -135,12 +135,12 @@ sal_Int16 SpellChecker::GetSpellFailure( const OUString &rWord, const Locale & )
String aTmp( rWord );
if (aTmp.Len())
{
- if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" ))
+ if (-1 != aTmp.indexOf( "liss" ))
{
nRes = SpellFailure::IS_NEGATIVE_WORD;
}
- else if (STRING_NOTFOUND != aTmp.Search( (sal_Unicode) 'x' ) ||
- STRING_NOTFOUND != aTmp.Search( (sal_Unicode) 'X' ))
+ else if (-1 != aTmp.indexOf( (sal_Unicode) 'x' ) ||
+ -1 != aTmp.indexOf( (sal_Unicode) 'X' ))
{
nRes = SpellFailure::SPELLING_ERROR;
}
@@ -216,14 +216,14 @@ Reference< XSpellAlternatives >
{
sal_Int16 nLang = LinguLocaleToLanguage( rLocale );
- if (STRING_NOTFOUND != aTmp.SearchAscii( "liss" ))
+ if (-1 != aTmp.indexOf( "liss" ))
{
aTmp.SearchAndReplaceAllAscii( "liss", "liz" );
xRes = new SpellAlternatives( aTmp, nLang,
SpellFailure::IS_NEGATIVE_WORD, ::com::sun::star::uno::Sequence< OUString >() );
}
- else if (STRING_NOTFOUND != aTmp.Search( (sal_Unicode) 'x' ) ||
- STRING_NOTFOUND != aTmp.Search( (sal_Unicode) 'X' ))
+ else if (-1 != aTmp.indexOf( (sal_Unicode) 'x' ) ||
+ -1 != aTmp.indexOf( (sal_Unicode) 'X' ))
{
Sequence< OUString > aStr( 2 );
OUString *pStr = aStr.getArray();