Bug 1520931 - Baldr: fix implicit constructor warning (r=me)
authorLuke Wagner <luke@mozilla.com>
Mon, 18 Feb 2019 17:55:43 -0600
changeset 459829 e772a34b885e0f84118d347cd822265d5ed66810
parent 459828 10030bd8ac3dd4d0333aae3a44ecfbbe5bb75bec
child 459830 0daaf4ad964578e532cc798f03359a932074eccc
push id35575
push usercbrindusan@mozilla.com
push dateTue, 19 Feb 2019 04:40:03 +0000
treeherdermozilla-central@ee6e77950205 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1520931
milestone67.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 1520931 - Baldr: fix implicit constructor warning (r=me)
js/src/wasm/WasmJS.cpp
--- a/js/src/wasm/WasmJS.cpp
+++ b/js/src/wasm/WasmJS.cpp
@@ -454,17 +454,17 @@ bool wasm::Eval(JSContext* cx, Handle<Ty
 
 struct MOZ_STACK_CLASS SerializeListener : JS::OptimizedEncodingListener {
   // MOZ_STACK_CLASS means these can be nops.
   MozExternalRefCountType MOZ_XPCOM_ABI AddRef() override { return 0; }
   MozExternalRefCountType MOZ_XPCOM_ABI Release() override { return 0; }
 
   DebugOnly<bool> called = false;
   Bytes* serialized;
-  SerializeListener(Bytes* serialized) : serialized(serialized) {}
+  explicit SerializeListener(Bytes* serialized) : serialized(serialized) {}
 
   void storeOptimizedEncoding(const uint8_t* bytes, size_t length) override {
     MOZ_ASSERT(!called);
     called = true;
     if (serialized->resize(length)) {
       memcpy(serialized->begin(), bytes, length);
     }
   }