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

* * *

diff --git a/xpcom/glue/nsTObserverArray.h b/xpcom/glue/nsTObserverArray.h
--- a/xpcom/glue/nsTObserverArray.h
+++ b/xpcom/glue/nsTObserverArray.h
@@ -371,9 +371,9 @@ class nsTObserverArray : public nsAutoTO
 // Note that this macro only works if the array holds pointers to XPCOM objects.
 #define NS_OBSERVER_ARRAY_NOTIFY_OBSERVERS(array_, obstype_, func_, params_) \
   PR_BEGIN_MACRO                                                             \
-    nsTObserverArray<obstype_ *>::ForwardIterator iter_(array_);             \
-    nsCOMPtr<obstype_> obs_;                                                 \
-    while (iter_.HasMore()) {                                                 \
+    nsTObserverArray<obstype_*>::ForwardIterator iter_(array_);              \
+    obstype_* obs_;                                                          \
+    while (iter_.HasMore()) {                                                \
       obs_ = iter_.GetNext();                                                \
       obs_ -> func_ params_ ;                                                \
     }                                                                        \