summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-11 05:24:10 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-11 05:24:10 +0000
commitedf49873fd0d9cac7a9addd627cde0fe5d62c58c (patch)
treeb04c4c534425dc9efa0376f06a9bbe5eec26fffc /Common/interface
parentMinor update to CMake file (diff)
downloadDiligentCore-edf49873fd0d9cac7a9addd627cde0fe5d62c58c.tar.gz
DiligentCore-edf49873fd0d9cac7a9addd627cde0fe5d62c58c.zip
Made FastRand and FastRandReal ctors explicit
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/FastRand.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/interface/FastRand.hpp b/Common/interface/FastRand.hpp
index da3822c1..aed0c23a 100644
--- a/Common/interface/FastRand.hpp
+++ b/Common/interface/FastRand.hpp
@@ -42,7 +42,7 @@ public:
static constexpr StateType Max = 0x7FFF;
- FastRand(StateType Seed) :
+ explicit FastRand(StateType Seed) noexcept :
State{Seed}
{
}
@@ -62,7 +62,7 @@ template <typename Type>
class FastRandReal : private FastRand
{
public:
- FastRandReal(FastRand::StateType Seed) noexcept :
+ explicit FastRandReal(FastRand::StateType Seed) noexcept :
FastRand{Seed}
{}