зеркало из https://github.com/mozilla/gecko-dev.git
Bug 398623: Fixed PRBool misuse bugs in extensions/spellcheck. r=mscott, a=dsicore
This commit is contained in:
Родитель
fffbc1520c
Коммит
90bd1b75be
|
@ -418,7 +418,7 @@ NS_IMETHODIMP mozHunspell::Check(const PRUnichar *aWord, PRBool *aResult)
|
|||
nsresult rv = ConvertCharset(aWord, getter_Copies(charsetWord));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
*aResult = mHunspell->spell(charsetWord);
|
||||
*aResult = !!mHunspell->spell(charsetWord);
|
||||
|
||||
|
||||
if (!*aResult && mPersonalDictionary)
|
||||
|
|
|
@ -1135,7 +1135,7 @@ mozInlineSpellChecker::SkipSpellCheckForNode(nsIEditor* aEditor,
|
|||
else {
|
||||
// XXX Do we really want this for all read-write content?
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aNode);
|
||||
*checkSpelling = content->IntrinsicState() & NS_EVENT_STATE_MOZ_READWRITE;
|
||||
*checkSpelling = !!(content->IntrinsicState() & NS_EVENT_STATE_MOZ_READWRITE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче