Bug 739248 - fix signed/unsigned comparison warnings in the spellchecker; r=ehsan

This commit is contained in:
Nathan Froyd 2012-03-26 11:39:19 -04:00
parent dfe05c1f66
commit 205065807d
2 changed files with 3 additions and 3 deletions

View File

@ -420,7 +420,7 @@ mozHunspell::LoadDictionaryList()
}
// find dictionaries from restartless extensions
for (PRUint32 i = 0; i < mDynamicDirectories.Count(); i++) {
for (PRInt32 i = 0; i < mDynamicDirectories.Count(); i++) {
LoadDictionariesFromDir(mDynamicDirectories[i]);
}

View File

@ -318,7 +318,7 @@ mozSpellChecker::GetDictionaryList(nsTArray<nsString> *aDictionaryList)
rv = GetEngineList(&spellCheckingEngines);
NS_ENSURE_SUCCESS(rv, rv);
for (PRUint32 i = 0; i < spellCheckingEngines.Count(); i++) {
for (PRInt32 i = 0; i < spellCheckingEngines.Count(); i++) {
nsCOMPtr<mozISpellCheckingEngine> engine = spellCheckingEngines[i];
PRUint32 count = 0;
@ -376,7 +376,7 @@ mozSpellChecker::SetCurrentDictionary(const nsAString &aDictionary)
rv = GetEngineList(&spellCheckingEngines);
NS_ENSURE_SUCCESS(rv, rv);
for (PRUint32 i = 0; i < spellCheckingEngines.Count(); i++) {
for (PRInt32 i = 0; i < spellCheckingEngines.Count(); i++) {
// We must set mSpellCheckingEngine before we call SetDictionary, since
// SetDictionary calls back to this spell checker to check if the
// dictionary was set