mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
missing const
This commit is contained in:
parent
2348a4ef34
commit
b2e787b803
@ -136,7 +136,7 @@ bool NameAndTypeResolver::updateDeclaration(Declaration const& _declaration)
|
|||||||
m_scopes[nullptr].registerDeclaration(_declaration, false, true);
|
m_scopes[nullptr].registerDeclaration(_declaration, false, true);
|
||||||
solAssert(_declaration.scope() == nullptr, "Updated declaration outside global scope.");
|
solAssert(_declaration.scope() == nullptr, "Updated declaration outside global scope.");
|
||||||
}
|
}
|
||||||
catch(FatalError _error)
|
catch(FatalError const& _error)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ private:
|
|||||||
// creates the Declaration error and adds it in the errors list
|
// creates the Declaration error and adds it in the errors list
|
||||||
void reportTypeError(Error const& _e);
|
void reportTypeError(Error const& _e);
|
||||||
// creates the Declaration error and adds it in the errors list and throws FatalError
|
// creates the Declaration error and adds it in the errors list and throws FatalError
|
||||||
void reportFatalTypeError(const Error& _e);
|
void reportFatalTypeError(Error const& _e);
|
||||||
|
|
||||||
DeclarationContainer* m_currentScope = nullptr;
|
DeclarationContainer* m_currentScope = nullptr;
|
||||||
ErrorList& m_errors;
|
ErrorList& m_errors;
|
||||||
|
Loading…
Reference in New Issue
Block a user