Cycles: Use explicit qualifier for single-argument constructors
[blender.git] / intern / cycles / device / device_task.h
index d7912f386f5c165d0badfe9d4fcbb8b7a1d67307..8423e83bdfd14687ad2c04094278dddacb43e09c 100644 (file)
@@ -51,7 +51,7 @@ public:
        int shader_filter;
        int shader_x, shader_w;
 
-       DeviceTask(Type type = PATH_TRACE);
+       explicit DeviceTask(Type type = PATH_TRACE);
 
        int get_subtask_count(int num, int max_size = 0);
        void split(list<DeviceTask>& tasks, int num, int max_size = 0);