Bug 1083694 follow-up: Mark two constructors as explicit in order to fix the build bustage
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 30 Dec 2014 12:38:42 -0500
changeset 247512 1c63cf613373d871e9a7c7eedcc760b65177b542
parent 247511 f46c2220f91be38dd7299474f8906cd28a15f25c
child 247513 ef3f759cc0b4e07bb7e40f4b54d792a546faaf78
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1083694
milestone37.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 1083694 follow-up: Mark two constructors as explicit in order to fix the build bustage
js/src/vm/TraceLogging.cpp
js/src/vm/TraceLoggingGraph.cpp
--- a/js/src/vm/TraceLogging.cpp
+++ b/js/src/vm/TraceLogging.cpp
@@ -81,17 +81,17 @@ rdtsc(void)
 }
 #endif
 
 class AutoTraceLoggerThreadStateLock
 {
   TraceLoggerThreadState *logging;
 
   public:
-    AutoTraceLoggerThreadStateLock(TraceLoggerThreadState *logging MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
+    explicit AutoTraceLoggerThreadStateLock(TraceLoggerThreadState *logging MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
       : logging(logging)
     {
         MOZ_GUARD_OBJECT_NOTIFIER_INIT;
         PR_Lock(logging->lock);
     }
     ~AutoTraceLoggerThreadStateLock() {
         PR_Unlock(logging->lock);
     }
--- a/js/src/vm/TraceLoggingGraph.cpp
+++ b/js/src/vm/TraceLoggingGraph.cpp
@@ -24,17 +24,17 @@ using mozilla::NativeEndian;
 
 TraceLoggerGraphState traceLoggersGraph;
 
 class AutoTraceLoggerGraphStateLock
 {
   TraceLoggerGraphState *graph;
 
   public:
-    AutoTraceLoggerGraphStateLock(TraceLoggerGraphState *graph MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
+    explicit AutoTraceLoggerGraphStateLock(TraceLoggerGraphState *graph MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
       : graph(graph)
     {
         MOZ_GUARD_OBJECT_NOTIFIER_INIT;
         PR_Lock(graph->lock);
     }
     ~AutoTraceLoggerGraphStateLock() {
         PR_Unlock(graph->lock);
     }