Cycles: Use explicit qualifier for single-argument constructors
[blender.git] / intern / cycles / bvh / bvh_sort.cpp
index c12751979cd82e4a12209a19afe81e16eff446f3..f6bbdb231df2069ee9264f471e6717e985b37a68 100644 (file)
@@ -40,7 +40,7 @@ struct BVHReferenceCompare {
 public:
        int dim;
 
-       BVHReferenceCompare(int dim_)
+       explicit BVHReferenceCompare(int dim_)
        {
                dim = dim_;
        }
@@ -184,7 +184,7 @@ void bvh_reference_sort(int start, int end, BVHReference *data, int dim)
        }
        else {
                TaskPool task_pool;
-               bvh_reference_sort_threaded(&task_pool, data, start, end - 1, dim);
+               bvh_reference_sort_threaded(&task_pool, data, start, end - 1, compare);
                task_pool.wait_work();
        }
 }