Bug 1658571 - Add a missing "explicit" in a test. a=test-only
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 24 Sep 2020 19:51:46 +0200
changeset 614823 a9b4df381755de68a1a3b0d35a3500fc0920f460
parent 614822 e942b44520c8aa4195e5336530ad939fd27b0fb4
child 614824 21e0546bb5c8f9e58b2b6ee783f13c620a13c41a
push id2419
push userryanvm@gmail.com
push dateWed, 30 Sep 2020 00:30:36 +0000
treeherdermozilla-release@a9b4df381755 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1658571
milestone81.0.1
Bug 1658571 - Add a missing "explicit" in a test. a=test-only
mfbt/tests/gtest/TestMainThreadWeakPtr.cpp
--- a/mfbt/tests/gtest/TestMainThreadWeakPtr.cpp
+++ b/mfbt/tests/gtest/TestMainThreadWeakPtr.cpp
@@ -12,17 +12,17 @@
 
 using namespace mozilla;
 
 struct C : public SupportsWeakPtr {
   int mNum{0};
 };
 
 struct HasWeakPtrToC {
-  HasWeakPtrToC(C* c) : mPtr(c) {}
+  explicit HasWeakPtrToC(C* c) : mPtr(c) {}
 
   MainThreadWeakPtr<C> mPtr;
 
   ~HasWeakPtrToC() {
     MOZ_RELEASE_ASSERT(!NS_IsMainThread(), "Should be released OMT");
   }
 };