Bug 557690: Fix uninitialized return value in nsEditor::QueryComposition. r=roc

This commit is contained in:
Craig Topper 2010-04-08 12:26:27 -07:00
Родитель 3b576abbf7
Коммит 179ed9c4bb
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -1972,7 +1972,6 @@ nsEditor::StopPreservingSelection()
nsresult
nsEditor::QueryComposition(nsTextEventReply* aReply)
{
nsresult result;
nsCOMPtr<nsISelection> selection;
nsCOMPtr<nsISelectionController> selcon = do_QueryReferent(mSelConWeak);
if (selcon)
@ -2034,7 +2033,7 @@ nsEditor::QueryComposition(nsTextEventReply* aReply)
rect.ToOutsidePixels(frame->PresContext()->AppUnitsPerDevPixel());
}
}
return result;
return NS_OK;
}
NS_IMETHODIMP