Bug 1404302 - Include nsQuickSort.h in nsCOMArray.cpp. r?froydnj draft
authorPhilippe Normand <philn@igalia.com>
Thu, 28 Sep 2017 14:30:29 +0100
changeset 672605 61aa588fb5284aec2f3c22bf0e031801764f04cf
parent 672603 2e8e4a023581af6c260d7da49959ffb47bd191f6
child 672606 8f7ab2b4eb4e5fa8e5b2f57ec83415cec6253107
push id82293
push userbmo:cpearce@mozilla.com
push dateFri, 29 Sep 2017 12:39:30 +0000
reviewersfroydnj
bugs1404302
milestone58.0a1
Bug 1404302 - Include nsQuickSort.h in nsCOMArray.cpp. r?froydnj This fixes the build in non-unified mode, as nsCOMArray::Sort() method uses NS_QuickSort(). MozReview-Commit-ID: CDBLIX8D3mL
xpcom/ds/nsCOMArray.cpp
--- a/xpcom/ds/nsCOMArray.cpp
+++ b/xpcom/ds/nsCOMArray.cpp
@@ -3,16 +3,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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 "nsCOMArray.h"
 
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/OperatorNewExtensions.h"
+#include "nsQuickSort.h"
 
 #include "nsCOMPtr.h"
 
 // This specialization is private to nsCOMArray.
 // It exists solely to automatically zero-out newly created array elements.
 template<>
 class nsTArrayElementTraits<nsISupports*>
 {