Bug 1031440 - Fix an unused variable and a single-use variable pointed out by Neil. r=khuey

--HG--
extra : rebase_source : d326c1b131f777c3104f0179ab3b5b385d8bac48
This commit is contained in:
Blake Kaplan 2014-06-30 16:51:55 -07:00
Родитель 40254e3c7f
Коммит e19859bbb6
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -1345,7 +1345,6 @@ mozInlineSpellChecker::DoSpellCheckSelection(mozInlineSpellWordUtil& aWordUtil,
int32_t count = aSpellCheckSelection->GetRangeCount();
nsCOMPtr<nsIDOMRange> checkRange;
for (int32_t idx = 0; idx < count; idx++) {
nsRange *range = aSpellCheckSelection->GetRangeAt(idx);
if (range) {
@ -1369,13 +1368,11 @@ mozInlineSpellChecker::DoSpellCheckSelection(mozInlineSpellWordUtil& aWordUtil,
bool doneChecking;
for (int32_t idx = 0; idx < count; idx++) {
auto& checkRange = ranges[idx];
// We can consider this word as "added" since we know it has no spell
// check range over it that needs to be deleted. All the old ranges
// were cleared above. We also need to clear the word count so that we
// check all words instead of stopping early.
status.mRange = checkRange;
status.mRange = ranges[idx];
rv = DoSpellCheck(aWordUtil, aSpellCheckSelection, &status,
&doneChecking);
NS_ENSURE_SUCCESS(rv, rv);