diff options
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/NameAndTypeResolver.cpp | 4 | ||||
-rw-r--r-- | libsolidity/NameAndTypeResolver.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/NameAndTypeResolver.cpp b/libsolidity/NameAndTypeResolver.cpp index 88cd1e2e..1491068e 100644 --- a/libsolidity/NameAndTypeResolver.cpp +++ b/libsolidity/NameAndTypeResolver.cpp @@ -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()); diff --git a/libsolidity/NameAndTypeResolver.h b/libsolidity/NameAndTypeResolver.h index 4fe8dd8c..6f3a4c87 100644 --- a/libsolidity/NameAndTypeResolver.h +++ b/libsolidity/NameAndTypeResolver.h @@ -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; |