diff --git a/mozilla/editor/libeditor/base/JoinElementTxn.cpp b/mozilla/editor/libeditor/base/JoinElementTxn.cpp index c72af9c87b9..e00c3ed569e 100644 --- a/mozilla/editor/libeditor/base/JoinElementTxn.cpp +++ b/mozilla/editor/libeditor/base/JoinElementTxn.cpp @@ -93,8 +93,7 @@ NS_IMETHODIMP JoinElementTxn::DoTransaction(void) { mParent= do_QueryInterface(leftParent); // set this instance mParent. // Other methods will see a non-null mParent and know all is well - nsCOMPtr leftNodeAsText; - leftNodeAsText = do_QueryInterface(mLeftNode); + nsCOMPtr leftNodeAsText = do_QueryInterface(mLeftNode); if (leftNodeAsText) { leftNodeAsText->GetLength(&mOffset); @@ -138,8 +137,7 @@ NS_IMETHODIMP JoinElementTxn::UndoTransaction(void) nsresult result; nsCOMPtrresultNode; // first, massage the existing node so it is in its post-split state - nsCOMPtrrightNodeAsText; - rightNodeAsText = do_QueryInterface(mRightNode); + nsCOMPtrrightNodeAsText = do_QueryInterface(mRightNode); if (rightNodeAsText) { result = rightNodeAsText->DeleteData(0, mOffset); @@ -147,8 +145,8 @@ NS_IMETHODIMP JoinElementTxn::UndoTransaction(void) else { nsCOMPtrchild; - nsCOMPtrnextSibling; result = mRightNode->GetFirstChild(getter_AddRefs(child)); + nsCOMPtrnextSibling; PRUint32 i; for (i=0; i