Cycles: Use explicit qualifier for single-argument constructors
[blender.git] / intern / cycles / subd / subd_mesh.cpp
index d7cb7b921eeeff71db8b574b9f78d27e95842a39..56d7d2b23031a58dcadcd1a13b7c70a4073d18f5 100644 (file)
@@ -291,7 +291,7 @@ public:
        int id;
        float3 co;
        
-       SubdVert(int id_)
+       explicit SubdVert(int id_)
        {
                id = id_;
                co = make_float3(0.0f, 0.0f, 0.0f);
@@ -307,7 +307,7 @@ public:
        int numverts;
        int verts[4];
 
-       SubdFace(int id_)
+       explicit SubdFace(int id_)
        {
                id = id_;
                numverts = 0;