Bug 1399309 - Make nsTSubstring.cpp include MathAlgorithms.h. r?froydjy draft
authorChris Pearce <cpearce@mozilla.com>
Wed, 13 Sep 2017 13:50:05 +1200
changeset 663437 c2bf250d8a8cb37fe684e817bc6be28c52d6b975
parent 663436 c2153099bc471be7ae348e7b73d7ac187d51bf0e
child 731209 52df321c83d1a2c537abf749fb301a5266f52e4a
push id79442
push userbmo:cpearce@mozilla.com
push dateWed, 13 Sep 2017 01:55:25 +0000
reviewersfroydjy
bugs1399309
milestone57.0a1
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
xpcom/string/nsTSubstring.cpp
--- 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;