Bug 658494: Fix out-of-order init list in nsAccTreeWalker constructor. r=marcoz
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 20 May 2011 03:55:37 -0700
changeset 69766 7bffd92f482518a891a76ad4e3a05032960add8b
parent 69765 75fc2600eea8c927b308f6085f60d3030c003370
child 69767 7a74ad0b746e2ded0684879a3883296074b3c2d8
push idunknown
push userunknown
push dateunknown
reviewersmarcoz
bugs658494
milestone6.0a1
Bug 658494: Fix out-of-order init list in nsAccTreeWalker constructor. r=marcoz
accessible/src/base/nsAccTreeWalker.cpp
--- a/accessible/src/base/nsAccTreeWalker.cpp
+++ b/accessible/src/base/nsAccTreeWalker.cpp
@@ -62,17 +62,17 @@ struct WalkState
 
 ////////////////////////////////////////////////////////////////////////////////
 // nsAccTreeWalker
 ////////////////////////////////////////////////////////////////////////////////
 
 nsAccTreeWalker::
   nsAccTreeWalker(nsIWeakReference* aShell, nsIContent* aContent,
                   PRBool aWalkAnonContent, bool aWalkCache) :
-  mWeakShell(aShell), mState(nsnull), mWalkCache(aWalkCache)
+  mWeakShell(aShell), mWalkCache(aWalkCache), mState(nsnull)
 {
   NS_ASSERTION(aContent, "No node for the accessible tree walker!");
 
   if (aContent)
     mState = new WalkState(aContent);
 
   mChildFilter = aWalkAnonContent ? nsIContent::eAllChildren :
                                   nsIContent::eAllButXBL;