Bug 1382275 - Fix bustage due to missing explict keyword r=me on a CLOSED TREE
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 26 Jul 2017 14:39:32 +0100
changeset 420005 15da8084e9617944e79330343134391ca6a0d8f9
parent 420004 14755efcbf65e408fd122d027af8a81ddd2b7b08
child 420006 36f12c9341cd2ac0f8a7efcd00d124f67df4f3a0
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1382275
milestone56.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 1382275 - Fix bustage due to missing explict keyword r=me on a CLOSED TREE
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -5837,17 +5837,17 @@ struct IncrementalIter
     using State = Maybe<Iter>;
     using Elem = decltype(mozilla::DeclVal<Iter>().get());
 
   private:
     State& maybeIter;
 
   public:
     template <typename... Args>
-    IncrementalIter(State& maybeIter, Args&&... args)
+    explicit IncrementalIter(State& maybeIter, Args&&... args)
       : maybeIter(maybeIter)
     {
         if (maybeIter.isNothing())
             maybeIter.emplace(mozilla::Forward<Args>(args)...);
     }
 
     ~IncrementalIter() {
         if (done())
@@ -5871,17 +5871,17 @@ struct IncrementalIter
 template <typename... Args>
 class SweepActionFunc : public SweepAction<Args...>
 {
     using Func = IncrementalProgress (*)(Args...);
 
     Func func;
 
   public:
-    SweepActionFunc(Func f) : func(f) {}
+    explicit SweepActionFunc(Func f) : func(f) {}
     IncrementalProgress run(Args... args) override {
         return func(args...);
     }
     void assertFinished() const override { }
 };
 
 // Implementation of the SweepAction interface that calls a list of actions in
 // sequence.