Bug 444824. Remove useless assignment. r+sr=peterv
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 17 Jul 2008 09:34:17 -0400
changeset 16009 b87bb120312e2202ee5e429ef9d30accec046aa4
parent 16008 97d87f0f8ee895c5b96f074fc9640f1ee89fe15d
child 16010 b71578e7622ace13f38187e11849cb6c74eab20e
push idunknown
push userunknown
push dateunknown
bugs444824
milestone1.9.1a1pre
Bug 444824. Remove useless assignment. r+sr=peterv
content/base/src/nsGenericElement.cpp
--- a/content/base/src/nsGenericElement.cpp
+++ b/content/base/src/nsGenericElement.cpp
@@ -330,17 +330,17 @@ nsINode::GetTextEditorRootContent(nsIEdi
   if (aEditor)
     *aEditor = nsnull;
   for (nsINode* node = this; node; node = node->GetNodeParent()) {
     nsCOMPtr<nsIDOMNSEditableElement> editableElement(do_QueryInterface(node));
     if (!editableElement)
       continue;
 
     nsCOMPtr<nsIEditor> editor;
-    nsresult rv = editableElement->GetEditor(getter_AddRefs(editor));
+    editableElement->GetEditor(getter_AddRefs(editor));
     NS_ENSURE_TRUE(editor, nsnull);
     nsIContent* rootContent = GetEditorRootContent(editor);
     if (aEditor)
       editor.swap(*aEditor);
     return rootContent;
   }
   return nsnull;
 }