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

diff --git a/content/events/public/nsMutationEvent.h b/content/events/public/nsMutationEvent.h
--- a/content/events/public/nsMutationEvent.h
+++ b/content/events/public/nsMutationEvent.h
@@ -48,16 +48,20 @@ class nsMutationEvent : public nsEvent
 {
 public:
   nsMutationEvent(PRBool isTrusted, PRUint32 msg)
-    : nsEvent(isTrusted, msg, NS_MUTATION_EVENT),
-      mAttrChange(0)
+    : nsEvent(isTrusted, msg, NS_MUTATION_EVENT)
+    , mRelatedNode(nsnull)
+    , mAttrName(nsnull)
+    , mPrevAttrValue(nsnull)
+    , mNewAttrValue(nsnull)
+    , mAttrChange(0)
   {
     flags |= NS_EVENT_FLAG_CANT_CANCEL;
   }
 
-  nsCOMPtr<nsIDOMNode> mRelatedNode;
-  nsCOMPtr<nsIAtom>    mAttrName;
-  nsCOMPtr<nsIAtom>    mPrevAttrValue;
-  nsCOMPtr<nsIAtom>    mNewAttrValue;
+  nsIDOMNode* mRelatedNode;
+  nsIAtom*    mAttrName;
+  nsIAtom*    mPrevAttrValue;
+  nsIAtom*    mNewAttrValue;
   unsigned short       mAttrChange;
 };