diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-11 17:50:10 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-11 17:51:14 +0300 |
commit | 92774ff792a6c474df2a40c13204da4975de0c09 (patch) | |
tree | 3c709f8f3126449bcc2c50ae51f89442d01e34d0 /intern/cycles/bvh/bvh_sort.cpp | |
parent | d57f416e47f54241dea0892f3b064afbe1b8a899 (diff) |
Cycles: Use explicit qualifier for single-argument constructors
Almost in all cases we want such constructors to be explicit, there are
exceptions but only in few places.
Diffstat (limited to 'intern/cycles/bvh/bvh_sort.cpp')
-rw-r--r-- | intern/cycles/bvh/bvh_sort.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/bvh/bvh_sort.cpp b/intern/cycles/bvh/bvh_sort.cpp index c12751979cd..f6bbdb231df 100644 --- a/intern/cycles/bvh/bvh_sort.cpp +++ b/intern/cycles/bvh/bvh_sort.cpp @@ -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(); } } |