Mark appropriate constructors explicit

This commit is contained in:
Alex Beregszaszi
2017-08-22 10:51:46 +01:00
parent 3cf2426e1a
commit 2a5772cff7
15 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ using namespace dev::solidity;
class StackHeightChecker
{
public:
StackHeightChecker(CompilerContext const& _context):
explicit StackHeightChecker(CompilerContext const& _context):
m_context(_context), stackHeight(m_context.stackHeight()) {}
void check() { solAssert(m_context.stackHeight() == stackHeight, std::string("I sense a disturbance in the stack: ") + std::to_string(m_context.stackHeight()) + " vs " + std::to_string(stackHeight)); }
private: