Bug 1196682 - fixup static analysis build bustage on a CLOSED TREE; r=me
authorNathan Froyd <froydnj@mozilla.com>
Mon, 24 Aug 2015 17:49:28 -0400
changeset 259045 793916ec6dd4c589a8d589967158ccff532527ac
parent 259044 5b179e366ecfc4dcb3b94f5192d983fe88a31b51
child 259046 f78c80504443f2f66b2550837dbd6de3724e54ff
push id29268
push userryanvm@gmail.com
push dateTue, 25 Aug 2015 00:37:23 +0000
treeherdermozilla-central@08015770c9d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1196682
milestone43.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 1196682 - fixup static analysis build bustage on a CLOSED TREE; r=me
gfx/layers/LayerScope.cpp
--- a/gfx/layers/LayerScope.cpp
+++ b/gfx/layers/LayerScope.cpp
@@ -777,17 +777,17 @@ public:
         nsRefPtr<DebugDataSender> mHost;
     };
 
     // Clear all DebugData in mList on mThead.
     class ClearTask: public nsIRunnable
     {
     public:
         NS_DECL_THREADSAFE_ISUPPORTS
-        ClearTask(DebugDataSender *host)
+        explicit ClearTask(DebugDataSender *host)
             : mHost(host)
         {  }
 
         NS_IMETHODIMP Run() override {
             mHost->RemoveData();
             return NS_OK;
         }
 
@@ -799,17 +799,17 @@ public:
 
     // Send all DebugData in mList via websocket, and then, clean up
     // mList on mThread.
     class SendTask: public nsIRunnable
     {
     public:
         NS_DECL_THREADSAFE_ISUPPORTS
 
-        SendTask(DebugDataSender *host)
+        explicit SendTask(DebugDataSender *host)
             : mHost(host)
         {  }
 
         NS_IMETHODIMP Run() override {
             // Sendout all appended debug data.
             DebugGLData *d = nullptr;
             while ((d = mHost->mList.popFirst()) != nullptr) {
                 UniquePtr<DebugGLData> cleaner(d);
@@ -824,17 +824,17 @@ public:
             return NS_OK;
         }
     private:
         virtual ~SendTask() { }
 
         nsRefPtr<DebugDataSender> mHost;
     };
 
-    DebugDataSender(nsIThread *thread)
+    explicit DebugDataSender(nsIThread *thread)
         : mThread(thread)
     {  }
 
     void Append(DebugGLData *d) {
         mThread->Dispatch(new AppendTask(this, d), NS_DISPATCH_NORMAL);
     }
 
     void Cleanup() {