mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Stylistic corrections.
This commit is contained in:
parent
c1f7a1665f
commit
f0c73b7a54
2
AST.cpp
2
AST.cpp
@ -344,7 +344,7 @@ void ExpressionStatement::checkTypeRequirements()
|
||||
m_expression->checkTypeRequirements();
|
||||
}
|
||||
|
||||
void Expression::expectType(const Type& _expectedType)
|
||||
void Expression::expectType(Type const& _expectedType)
|
||||
{
|
||||
checkTypeRequirements();
|
||||
if (!getType()->isImplicitlyConvertibleTo(_expectedType))
|
||||
|
@ -41,7 +41,7 @@ void CompilerContext::initializeLocalVariables(unsigned _numVariables)
|
||||
}
|
||||
}
|
||||
|
||||
int CompilerContext::getStackPositionOfVariable(const Declaration& _declaration)
|
||||
int CompilerContext::getStackPositionOfVariable(Declaration const& _declaration)
|
||||
{
|
||||
auto res = find(begin(m_localVariables), end(m_localVariables), &_declaration);
|
||||
if (asserts(res != m_localVariables.end()))
|
||||
@ -49,7 +49,7 @@ int CompilerContext::getStackPositionOfVariable(const Declaration& _declaration)
|
||||
return end(m_localVariables) - res - 1 + m_asm.deposit();
|
||||
}
|
||||
|
||||
eth::AssemblyItem CompilerContext::getFunctionEntryLabel(const FunctionDefinition& _function) const
|
||||
eth::AssemblyItem CompilerContext::getFunctionEntryLabel(FunctionDefinition const& _function) const
|
||||
{
|
||||
auto res = m_functionEntryLabels.find(&_function);
|
||||
if (asserts(res != m_functionEntryLabels.end()))
|
||||
|
Loading…
Reference in New Issue
Block a user