Bug 380674, Move nsTObserverArray from content/* to xpcom/*, r=bsmedberg
authorOlli.Pettay@helsinki.fi
Tue, 22 May 2007 13:45:13 -0700
changeset 1719 b2bd76c430e22fda2bdfa6d1ceb876d858adc0c5
parent 1718 d942368fb0d16f1ea7f54662cc350cb3e071119e
child 1720 56e6eb9f272521829d2c4f8ceb716b50b717bb7f
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs380674
milestone1.9a5pre
Bug 380674, Move nsTObserverArray from content/* to xpcom/*, r=bsmedberg
xpcom/build/dlldeps.cpp
--- a/xpcom/build/dlldeps.cpp
+++ b/xpcom/build/dlldeps.cpp
@@ -93,16 +93,17 @@
 #include "nsInterfaceRequestorAgg.h"
 #include "nsHashPropertyBag.h"
 #include "nsXPCOMStrings.h"
 #include "nsStringBuffer.h"
 #include "nsCategoryCache.h"
 #include "nsCycleCollectionParticipant.h"
 #include "nsCycleCollector.h"
 #include "nsThreadUtils.h"
+#include "nsTObserverArray.h"
 
 #if !defined(WINCE) && !defined(XP_OS2)
 #include "nsWindowsRegKey.h"
 #endif
 
 class nsCStringContainer : private nsStringContainer_base { };
 class nsStringContainer : private nsStringContainer_base { };
 
@@ -118,16 +119,23 @@ void XXXNeverCalled()
       nsTArray<PRBool> array1(1), array2(1);
       PRBool a, b, c;
       a = b = c = PR_FALSE;
       array1.AppendElement(a);
       array2.InsertElementAt(b, 0);
       array2.InsertElementAt(c, 0);
       array1.AppendElements(array2);
     }
+    {
+      nsTObserverArray<PRBool> dummyObserverArray;
+      PRBool a = PR_FALSE;
+      dummyObserverArray.AppendObserver(&a);
+      dummyObserverArray.RemoveObserver(&a);
+      dummyObserverArray.Clear();
+    }
     nsStringHashSet();
     nsCStringHashSet();
     nsInt32HashSet();
     nsVoidHashSet();
     nsCheapStringSet();
     nsCheapInt32Set();
     nsValueArray(0);
     nsSupportsArray();