From bdf22faafccf3733de30c48287f56bc7e1212603 Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Fri, 10 Nov 2000 14:53:40 +0000 Subject: [PATCH] Fix from katakai@japan.sun.com for bug #58698: Solaris only: cmd_cut operation fails in optimize build Initialize result with NS_OK in CreateTxnsToDeleteContent(). r=kin@netscape.com sr=sfraser@netscape.com git-svn-id: svn://10.0.0.236/trunk@82526 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/DeleteRangeTxn.cpp | 2 +- mozilla/editor/libeditor/base/DeleteRangeTxn.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/base/DeleteRangeTxn.cpp b/mozilla/editor/base/DeleteRangeTxn.cpp index 1e3299d1b69..213e80b2aa8 100644 --- a/mozilla/editor/base/DeleteRangeTxn.cpp +++ b/mozilla/editor/base/DeleteRangeTxn.cpp @@ -277,7 +277,7 @@ NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteContent(nsIDOMNode *aParent, PRUint32 aOffset, nsIEditor::EDirection aAction) { - nsresult result; + nsresult result = NS_OK; // see what kind of node we have nsCOMPtr textNode; textNode = do_QueryInterface(aParent); diff --git a/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp b/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp index 1e3299d1b69..213e80b2aa8 100644 --- a/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp +++ b/mozilla/editor/libeditor/base/DeleteRangeTxn.cpp @@ -277,7 +277,7 @@ NS_IMETHODIMP DeleteRangeTxn::CreateTxnsToDeleteContent(nsIDOMNode *aParent, PRUint32 aOffset, nsIEditor::EDirection aAction) { - nsresult result; + nsresult result = NS_OK; // see what kind of node we have nsCOMPtr textNode; textNode = do_QueryInterface(aParent);