Bug 1399309 - Make nsTSubstring.cpp include MathAlgorithms.h. r?froydjy
nsTSubstring.cpp is calling RoundUpPow2 which is defined in MathAlgorithms.h.
Without this, we get a build failure in non-unified builds.
MozReview-Commit-ID: Dz7VIZk4dLw
--- a/xpcom/string/nsTSubstring.cpp
+++ b/xpcom/string/nsTSubstring.cpp
@@ -4,16 +4,17 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsASCIIMask.h"
#include "mozilla/CheckedInt.h"
#include "mozilla/double-conversion.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/Printf.h"
+#include "mozilla/MathAlgorithms.h"
using double_conversion::DoubleToStringConverter;
const nsTSubstring_CharT::size_type nsTSubstring_CharT::kMaxCapacity =
(nsTSubstring_CharT::size_type(-1) /
2 - sizeof(nsStringBuffer)) /
sizeof(nsTSubstring_CharT::char_type) - 2;