loplugin:salbool
Change-Id: I186376ceeb53126bc31d63d00a988be6cb7a5637
This commit is contained in:
@@ -246,7 +246,7 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale
|
|||||||
}
|
}
|
||||||
|
|
||||||
NSInteger aCount;
|
NSInteger aCount;
|
||||||
NSRange range = [macSpell checkSpellingOfString:aNSStr startingAt:0 language:aLang wrap:sal_False inSpellDocumentWithTag:macTag wordCount:&aCount];
|
NSRange range = [macSpell checkSpellingOfString:aNSStr startingAt:0 language:aLang wrap:false inSpellDocumentWithTag:macTag wordCount:&aCount];
|
||||||
int rVal = 0;
|
int rVal = 0;
|
||||||
if(range.length>0)
|
if(range.length>0)
|
||||||
{
|
{
|
||||||
@@ -277,10 +277,10 @@ sal_Bool SAL_CALL
|
|||||||
MutexGuard aGuard( GetLinguMutex() );
|
MutexGuard aGuard( GetLinguMutex() );
|
||||||
|
|
||||||
if (rLocale == Locale() || !rWord.getLength())
|
if (rLocale == Locale() || !rWord.getLength())
|
||||||
return sal_True;
|
return true;
|
||||||
|
|
||||||
if (!hasLocale( rLocale ))
|
if (!hasLocale( rLocale ))
|
||||||
return sal_True;
|
return true;
|
||||||
|
|
||||||
// Get property values to be used.
|
// Get property values to be used.
|
||||||
// These are be the default values set in the SN_LINGU_PROPERTIES
|
// These are be the default values set in the SN_LINGU_PROPERTIES
|
||||||
|
Reference in New Issue
Block a user