Cycles: Use explicit qualifier for single-argument constructors
[blender.git] / intern / cycles / util / util_time.h
index 9cd52d5f11af4499325b779dcd33faca483853d4..a5b074bffa0958378751f7fc1fe86a2252b49fbc 100644 (file)
@@ -29,7 +29,7 @@ void time_sleep(double t);
 
 class scoped_timer {
 public:
-       scoped_timer(double *value) : value_(value)
+       explicit scoped_timer(double *value) : value_(value)
        {
                time_start_ = time_dt();
        }