diff --git a/mozilla/editor/base/DeleteTextTxn.cpp b/mozilla/editor/base/DeleteTextTxn.cpp index 811242077bf..05a6e19db53 100644 --- a/mozilla/editor/base/DeleteTextTxn.cpp +++ b/mozilla/editor/base/DeleteTextTxn.cpp @@ -90,7 +90,7 @@ NS_IMETHODIMP DeleteTextTxn::Undo(void) if (NS_SUCCEEDED(result)) { nsCOMPtr selection; - nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection)); + result = mEditor->GetSelection(getter_AddRefs(selection)); if (NS_FAILED(result)) return result; if (!selection) return NS_ERROR_NULL_POINTER; result = selection->Collapse(mElement, mOffset); diff --git a/mozilla/editor/libeditor/base/DeleteTextTxn.cpp b/mozilla/editor/libeditor/base/DeleteTextTxn.cpp index 811242077bf..05a6e19db53 100644 --- a/mozilla/editor/libeditor/base/DeleteTextTxn.cpp +++ b/mozilla/editor/libeditor/base/DeleteTextTxn.cpp @@ -90,7 +90,7 @@ NS_IMETHODIMP DeleteTextTxn::Undo(void) if (NS_SUCCEEDED(result)) { nsCOMPtr selection; - nsresult selectionResult = mEditor->GetSelection(getter_AddRefs(selection)); + result = mEditor->GetSelection(getter_AddRefs(selection)); if (NS_FAILED(result)) return result; if (!selection) return NS_ERROR_NULL_POINTER; result = selection->Collapse(mElement, mOffset);