Bug 1442295 - Add two missing includes in XPCOM. r=erahm
authorAndrew McCreight <continuation@gmail.com>
Thu, 01 Mar 2018 11:03:00 +0200
changeset 406444 6384f3478169f15a78c38bce8be9b3e8c1868df4
parent 406443 f96ee15e11b1a74d5206c6d0f9a8f54c69aa8745
child 406445 c2307a921159af7238d7fa9f4ccc9593928fec1f
push id33558
push userrgurzau@mozilla.com
push dateSat, 03 Mar 2018 21:46:37 +0000
treeherdermozilla-central@8cced2a46f73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerserahm
bugs1442295
milestone60.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 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