diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-21 22:42:17 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | 2a5772cff7d03de0d02c5358a6a6755e8f802697 (patch) | |
tree | a617c912a51e289b00f2c71f2754d15d451c3bb4 /libdevcore/Common.h | |
parent | 3cf2426e1a2975a60176cb46040fccfbc182d771 (diff) | |
download | dexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.tar.gz dexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.tar.zst dexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.zip |
Mark appropriate constructors explicit
Diffstat (limited to 'libdevcore/Common.h')
-rw-r--r-- | libdevcore/Common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdevcore/Common.h b/libdevcore/Common.h index d383e74d..9d6dd408 100644 --- a/libdevcore/Common.h +++ b/libdevcore/Common.h @@ -157,7 +157,7 @@ template <> inline u256 exp10<0>() class ScopeGuard { public: - ScopeGuard(std::function<void(void)> _f): m_f(_f) {} + explicit ScopeGuard(std::function<void(void)> _f): m_f(_f) {} ~ScopeGuard() { m_f(); } private: |