mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added const
This commit is contained in:
parent
292fb473bf
commit
656e749b1e
@ -328,12 +328,12 @@ void NameAndTypeResolver::reportFatalDeclarationError(
|
||||
BOOST_THROW_EXCEPTION(FatalError());
|
||||
}
|
||||
|
||||
void NameAndTypeResolver::reportTypeError(Error _e)
|
||||
void NameAndTypeResolver::reportTypeError(Error const& _e)
|
||||
{
|
||||
m_errors.push_back(make_shared<Error>(_e));
|
||||
}
|
||||
|
||||
void NameAndTypeResolver::reportFatalTypeError(Error _e)
|
||||
void NameAndTypeResolver::reportFatalTypeError(Error const& _e)
|
||||
{
|
||||
reportTypeError(_e);
|
||||
BOOST_THROW_EXCEPTION(FatalError());
|
||||
|
@ -106,9 +106,9 @@ private:
|
||||
void reportFatalDeclarationError(SourceLocation _sourceLocation, std::string const& _description);
|
||||
|
||||
// creates the Declaration error and adds it in the errors list
|
||||
void reportTypeError(Error _e);
|
||||
void reportTypeError(Error const& _e);
|
||||
// creates the Declaration error and adds it in the errors list and throws FatalError
|
||||
void reportFatalTypeError(Error _e);
|
||||
void reportFatalTypeError(const Error& _e);
|
||||
|
||||
DeclarationContainer* m_currentScope = nullptr;
|
||||
ErrorList& m_errors;
|
||||
|
Loading…
Reference in New Issue
Block a user