Bug 1288077: Cleanup forward declarations of array types, r=froydnj
authorThomas Zimmermann <tdz@users.sourceforge.net>
Wed, 20 Jul 2016 17:29:36 +0200
changeset 305920 156883ff3dda507bfad949979fdf0d657c4a553e
parent 305919 73c97e5ff2f867d01e4b4c6700637b60a498e5c7
child 305921 234f9780a4cd5caa3f09cd4d0a7dbcf507d478cd
push id30474
push usercbook@mozilla.com
push dateThu, 21 Jul 2016 14:25:10 +0000
treeherdermozilla-central@6b180266ac16 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1288077
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1288077: Cleanup forward declarations of array types, r=froydnj MozReview-Commit-ID: 59XzOnREb6I
xpcom/glue/nsTArray.h
xpcom/glue/nsTArrayForwardDeclare.h
--- a/xpcom/glue/nsTArray.h
+++ b/xpcom/glue/nsTArray.h
@@ -530,19 +530,16 @@ public:
 template<class A, class B>
 class nsDefaultComparator
 {
 public:
   bool Equals(const A& aA, const B& aB) const { return aA == aB; }
   bool LessThan(const A& aA, const B& aB) const { return aA < aB; }
 };
 
-template<class E> class InfallibleTArray;
-template<class E> class FallibleTArray;
-
 template<bool IsPod, bool IsSameType>
 struct AssignRangeAlgorithm
 {
   template<class Item, class ElemType, class IndexType, class SizeType>
   static void implementation(ElemType* aElements, IndexType aStart,
                              SizeType aCount, const Item* aValues)
   {
     ElemType* iter = aElements + aStart;
--- a/xpcom/glue/nsTArrayForwardDeclare.h
+++ b/xpcom/glue/nsTArrayForwardDeclare.h
@@ -25,11 +25,12 @@ template<class E>
 class nsTArray;
 
 template<class E>
 class FallibleTArray;
 
 template<class E, size_t N>
 class AutoTArray;
 
-#define InfallibleTArray nsTArray
+template<class E>
+using InfallibleTArray = nsTArray<E>;
 
 #endif