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/render/nodes.h | |
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/render/nodes.h')
-rw-r--r-- | intern/cycles/render/nodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h index 7ae37a633ca..ccfea033c12 100644 --- a/intern/cycles/render/nodes.h +++ b/intern/cycles/render/nodes.h @@ -75,7 +75,7 @@ public: class TextureNode : public ShaderNode { public: - TextureNode(const char *name_) : ShaderNode(name_) {} + explicit TextureNode(const char *name_) : ShaderNode(name_) {} TextureMapping tex_mapping; virtual bool equals(const ShaderNode *other) { @@ -87,7 +87,7 @@ public: /* Any node which uses image manager's slot should be a subclass of this one. */ class ImageSlotTextureNode : public TextureNode { public: - ImageSlotTextureNode(const char *name_) : TextureNode(name_) { + explicit ImageSlotTextureNode(const char *name_) : TextureNode(name_) { special_type = SHADER_SPECIAL_TYPE_IMAGE_SLOT; } int slot; @@ -379,7 +379,7 @@ public: class BsdfNode : public ShaderNode { public: - BsdfNode(bool scattering = false); + explicit BsdfNode(bool scattering = false); SHADER_NODE_BASE_CLASS(BsdfNode); bool has_spatial_varying() { return true; } |