Bug 1062073 - Mark BinarySearchDefaultComparator's constructor as explicit; r=froydnj
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 03 Sep 2014 18:25:13 -0400
changeset 203486 10374657336f1717740c0999108fa21484e6aa50
parent 203485 a478a6c39975c256b44d6198962addb76d9ba019
child 203487 bb0422a742ed0446f261c832c5a3feac18f4a0c4
push id27428
push usercbook@mozilla.com
push dateThu, 04 Sep 2014 13:00:04 +0000
treeherdermozilla-central@7bfd030e8fc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1062073
milestone35.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 1062073 - Mark BinarySearchDefaultComparator's constructor as explicit; r=froydnj
mfbt/BinarySearch.h
--- a/mfbt/BinarySearch.h
+++ b/mfbt/BinarySearch.h
@@ -96,17 +96,17 @@ BinarySearchIf(const Container& aContain
 }
 
 namespace detail {
 
 template<class T>
 class BinarySearchDefaultComparator
 {
 public:
-  BinarySearchDefaultComparator(const T& aTarget)
+  explicit BinarySearchDefaultComparator(const T& aTarget)
     : mTarget(aTarget)
   {}
 
   template <class U>
   int operator()(const U& val) const {
     if (mTarget == val) {
       return 0;
     }