Bug 1119335 - Fix static analysis test failure on CLOSED TREE. r=treeherder-red
authorKannan Vijayan <kvijayan@mozilla.com>
Fri, 20 Feb 2015 19:02:03 -0500
changeset 257158 0b9a16b993c9054aa27a189797594ca60c6236c1
parent 257157 617202816856ed0fcb3543f0d651cc5c1995b431
child 257159 e02960e6ee7aeb2453dee00af95e53bdab5992e5
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstreeherder-red
bugs1119335
milestone38.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 1119335 - Fix static analysis test failure on CLOSED TREE. r=treeherder-red
dom/media/webrtc/MediaEngineCameraVideoSource.h
--- a/dom/media/webrtc/MediaEngineCameraVideoSource.h
+++ b/dom/media/webrtc/MediaEngineCameraVideoSource.h
@@ -58,17 +58,17 @@ public:
     return NS_ERROR_NOT_IMPLEMENTED;
   }
 
   uint32_t GetBestFitnessDistance(
       const nsTArray<const dom::MediaTrackConstraintSet*>& aConstraintSets) MOZ_OVERRIDE;
 
 protected:
   struct CapabilityCandidate {
-    CapabilityCandidate(uint8_t index, uint32_t distance = 0)
+    explicit CapabilityCandidate(uint8_t index, uint32_t distance = 0)
     : mIndex(index), mDistance(distance) {}
 
     size_t mIndex;
     uint32_t mDistance;
   };
   typedef nsTArray<CapabilityCandidate> CapabilitySet;
 
   ~MediaEngineCameraVideoSource() {}