Bug 1274612 - Fix static analysis build errors caused by missing explicit keyword r=me
authorJon Coppeard <jcoppeard@mozilla.com>
Tue, 24 May 2016 13:26:06 +0100
changeset 298655 3908a77903cf3d3b571880a5c785142b3a1f9c02
parent 298654 a9b9a9115d0149b91aa1c73a14613c2628dc2f13
child 298656 701378e19df1fcdecae01159d657d314858b8198
push id77267
push userjcoppeard@mozilla.com
push dateTue, 24 May 2016 12:26:00 +0000
treeherdermozilla-inbound@3908a77903cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1274612
milestone49.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 1274612 - Fix static analysis build errors caused by missing explicit keyword r=me
js/src/jsapi-tests/testFindSCCs.cpp
--- a/js/src/jsapi-tests/testFindSCCs.cpp
+++ b/js/src/jsapi-tests/testFindSCCs.cpp
@@ -23,17 +23,17 @@ struct TestNode : public GraphNodeBase<T
     unsigned   index;
     bool       hasEdge[MaxVertices];
 
     void findOutgoingEdges(TestComponentFinder& finder);
 };
 
 struct TestComponentFinder : public ComponentFinder<TestNode, TestComponentFinder>
 {
-    TestComponentFinder(uintptr_t sl)
+    explicit TestComponentFinder(uintptr_t sl)
       : ComponentFinder<TestNode, TestComponentFinder>(sl)
     {}
 };
 
 static TestNode Vertex[MaxVertices];
 
 void
 TestNode::findOutgoingEdges(TestComponentFinder& finder)
@@ -218,17 +218,17 @@ struct TestNode2 : public GraphNodeBase<
     TestNode2* edge;
 
     TestNode2() : edge(nullptr) {}
     void findOutgoingEdges(TestComponentFinder2& finder);
 };
 
 struct TestComponentFinder2 : public ComponentFinder<TestNode2, TestComponentFinder2>
 {
-    TestComponentFinder2(uintptr_t sl)
+    explicit TestComponentFinder2(uintptr_t sl)
       : ComponentFinder<TestNode2, TestComponentFinder2>(sl)
     {}
 };
 
 void
 TestNode2::findOutgoingEdges(TestComponentFinder2& finder)
 {
     if (edge)