Bug 1442295 - Add two missing includes in XPCOM. r=erahm draft
authorAndrew McCreight <continuation@gmail.com>
Thu, 01 Mar 2018 08:46:36 -0800
changeset 762227 e0bc19e93422bb18fbe99ec79b97fb5f17ec6f43
parent 762050 fb9c7930fe77e2074e02a3cde903c4deccf31a3d
child 762228 993eeafa1f11e1055081ed0082e56551b66120c2
push id101107
push userbmo:continuation@gmail.com
push dateThu, 01 Mar 2018 22:22:59 +0000
reviewerserahm
bugs1442295
milestone60.0a1
Bug 1442295 - Add two missing includes in XPCOM. r=erahm nsTArray.h needs mozalloc.h for moz_xmalloc nsTStringRepr.h needs fallible.h for fallible MozReview-Commit-ID: 9jz2pGPXMHk
xpcom/ds/nsTArray.h
xpcom/string/nsTStringRepr.h
--- a/xpcom/ds/nsTArray.h
+++ b/xpcom/ds/nsTArray.h
@@ -13,16 +13,17 @@
 #include "mozilla/Assertions.h"
 #include "mozilla/Attributes.h"
 #include "mozilla/BinarySearch.h"
 #include "mozilla/CheckedInt.h"
 #include "mozilla/fallible.h"
 #include "mozilla/MathAlgorithms.h"
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/Move.h"
+#include "mozilla/mozalloc.h"
 #include "mozilla/ReverseIterator.h"
 #include "mozilla/TypeTraits.h"
 #include "mozilla/Span.h"
 
 #include <string.h>
 
 #include "nsCycleCollectionNoteChild.h"
 #include "nsAlgorithm.h"
--- a/xpcom/string/nsTStringRepr.h
+++ b/xpcom/string/nsTStringRepr.h
@@ -5,16 +5,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef nsTStringRepr_h
 #define nsTStringRepr_h
 
 #include <type_traits> // std::enable_if
 
 #include "mozilla/Char16.h"
+#include "mozilla/fallible.h"
 #include "nsStringFlags.h"
 #include "nsCharTraits.h"
 
 template <typename T> class nsTSubstringTuple;
 template <typename T> class nsTLiteralString;
 
 // The base for string comparators
 template <typename T> class nsTStringComparator