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

diff --git a/widget/public/nsGUIEvent.h b/widget/public/nsGUIEvent.h
--- a/widget/public/nsGUIEvent.h
+++ b/widget/public/nsGUIEvent.h
@@ -393,7 +393,10 @@ protected:
       refPoint(0, 0),
       time(0),
       flags(isTrusted ? NS_EVENT_FLAG_TRUSTED : NS_EVENT_FLAG_NONE),
-      userType(0)
+      userType(nsnull),
+      target(nsnull),
+      currentTarget(nsnull),
+      originalTarget(nsnull)
   {
     MOZ_COUNT_CTOR(nsEvent);
   }
@@ -405,7 +408,10 @@ public:
       refPoint(0, 0),
       time(0),
       flags(isTrusted ? NS_EVENT_FLAG_TRUSTED : NS_EVENT_FLAG_NONE),
-      userType(0)
+      userType(nsnull),
+      target(nsnull),
+      currentTarget(nsnull),
+      originalTarget(nsnull)
   {
     MOZ_COUNT_CTOR(nsEvent);
   }
@@ -428,13 +434,13 @@ public:
   // status. This is used also to indicate whether the event is trusted.
   PRUint32    flags;
   // Additional type info for user defined events
-  nsCOMPtr<nsIAtom>     userType;
+  nsIAtom* userType;
   // Event targets, needed by DOM Events
   // Using nsISupports, not nsIDOMEventTarget because in some cases
   // nsIDOMEventTarget is implemented as a tearoff.
-  nsCOMPtr<nsISupports> target;
-  nsCOMPtr<nsISupports> currentTarget;
-  nsCOMPtr<nsISupports> originalTarget;
+  nsISupports* target;
+  nsISupports* currentTarget;
+  nsISupports* originalTarget;
 };
 
 /**