Bug 494691 nsSelectionState::DoTraverse warning: unused variable ‘item’ (shadowed by another of the same name)
authortimeless@mozdev.org
Sat, 27 Jun 2009 18:42:51 -0700
changeset 29777 b371c9430539
parent 29776 24deeefbd7e5
child 29778 6e7a81c55a15
push id106
push userhsivonen@iki.fi
push dateSun, 28 Jun 2009 17:44:42 +0000
bugs494691
milestone1.9.2a1pre
Bug 494691 nsSelectionState::DoTraverse warning: unused variable ‘item’ (shadowed by another of the same name) r+sr=neil
editor/libeditor/base/nsSelectionState.cpp
--- a/editor/libeditor/base/nsSelectionState.cpp
+++ b/editor/libeditor/base/nsSelectionState.cpp
@@ -54,17 +54,16 @@ nsSelectionState::nsSelectionState() : m
 nsSelectionState::~nsSelectionState() 
 {
   MakeEmpty();
 }
 
 void
 nsSelectionState::DoTraverse(nsCycleCollectionTraversalCallback &cb)
 {
-  nsRangeStore *item;
   for (PRUint32 i = 0, iEnd = mArray.Length(); i < iEnd; ++i)
   {
     nsRangeStore &item = mArray[i];
     NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb,
                                        "selection state mArray[i].startNode");
     cb.NoteXPCOMChild(item.startNode);
     NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb,
                                        "selection state mArray[i].endNode");