Clean up some array stuff in editor; switch to nsCOMArray in a bunch of

places.  Bug 175564, r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@133685 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2002-11-12 19:40:11 +00:00
parent 0a3cfbf6ce
commit 04bc7e2dbf
14 changed files with 483 additions and 775 deletions

View File

@@ -40,9 +40,8 @@
#define __wsrunobject_h__
#include "nsCOMPtr.h"
#include "nsISupportsArray.h"
#include "nsIDOMNode.h"
#include "nsISupportsArray.h"
#include "nsCOMArray.h"
#include "nsITextContent.h"
#include "nsIEditor.h"
#include "nsEditorUtils.h"
@@ -318,7 +317,7 @@ class nsWSRunObject
nsCOMPtr<nsIDOMNode> mLastNBSPNode; // location of last nbsp in ws run, if any
PRInt32 mLastNBSPOffset; // ...
nsCOMPtr<nsISupportsArray> mNodeArray;//the list of nodes containing ws in this run
nsCOMArray<nsIDOMNode> mNodeArray;//the list of nodes containing ws in this run
WSFragment *mStartRun; // the first WSFragment in the run
WSFragment *mEndRun; // the last WSFragment in the run, may be same as first