Add missing explicit keyword draft
authorMiko Mynttinen <mikokm@gmail.com>
Mon, 08 Aug 2016 12:57:38 -0700
changeset 398884 299fba5dfcbfe561ef85bbe923a2917af58fb2e3
parent 398883 d3f6d9f6f82b8a5c22acf75e5d82ec7bad817da5
child 398885 2b4f56d2115e896835667f2e6b5fe78dbbe9bf83
push id25668
push userbmo:mikokm@gmail.com
push dateTue, 09 Aug 2016 23:22:28 +0000
milestone51.0a1
Add missing explicit keyword MozReview-Commit-ID: HH71iRje5Wj
gfx/layers/BSPTree.h
--- a/gfx/layers/BSPTree.h
+++ b/gfx/layers/BSPTree.h
@@ -15,17 +15,17 @@
 
 namespace mozilla {
 namespace layers {
 
 // Represents a node in a BSP tree. The node contains at least one polygon that
 // is used as a splitting plane, and at most two child nodes that represent the
 // splitting planes that further subdivide the space.
 struct BSPTreeNode {
-  BSPTreeNode(const gfx::Polygon3D& aPolygon)
+  explicit BSPTreeNode(const gfx::Polygon3D& aPolygon)
   {
     AddPolygon(aPolygon);
   }
 
   void AddPolygon(const gfx::Polygon3D& aPolygon)
   {
     polygons.AppendElement(aPolygon);
   }