nsContentListKey
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 68 49c5ee4b50b4e29f7da5e637a83b47436455034d
permissions -rw-r--r--
State as of now

diff --git a/content/base/src/nsContentList.h b/content/base/src/nsContentList.h
--- a/content/base/src/nsContentList.h
+++ b/content/base/src/nsContentList.h
@@ -140,15 +140,15 @@ public:
   inline PRUint32 GetHash(void) const
   {
     return
-      NS_PTR_TO_INT32(mMatchAtom.get()) ^
+      NS_PTR_TO_INT32(mMatchAtom) ^
       (NS_PTR_TO_INT32(mRootNode) << 12) ^
       (mMatchNameSpaceId << 24);
   }
   
 protected:
-  nsCOMPtr<nsIAtom> mMatchAtom;
-  PRInt32 mMatchNameSpaceId;
-  nsINode* mRootNode; // Weak ref
+  nsIAtom *const mMatchAtom;
+  const PRInt32 mMatchNameSpaceId;
+  nsINode * mRootNode; // XXXbsmedberg: add write barriers
 };
 
 /**