mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark appropriate constructors explicit
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user