From 39c8524f7d9180fe500e1b5d9a272cabd72399e9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 3 Dec 2013 12:09:30 +0200 Subject: 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 --- linguistic/workben/sspellimp.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'linguistic/workben/sspellimp.cxx') 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(); -- cgit