From 1a9af19728a3bd0296e4e00f26fded98aa8bbfbf Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 17 Sep 1999 20:19:50 +0000 Subject: [PATCH] fixed a compiler warning git-svn-id: svn://10.0.0.236/trunk@48008 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/DeleteTextTxn.cpp | 2 +- mozilla/editor/libeditor/base/DeleteTextTxn.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);