diff options
author | LianaHus <liana@ethdev.com> | 2015-10-15 22:51:01 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-10-15 22:51:01 +0800 |
commit | 656e749b1e231d09b30507d3b8153a413bff66eb (patch) | |
tree | d082f63c5fe586696ee29f764cdf5e71336cf527 /libsolidity | |
parent | 292fb473bf125ed513e1a12a70d162ebd055e380 (diff) | |
download | dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar.gz dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar.bz2 dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar.lz dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar.xz dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.tar.zst dexon-solidity-656e749b1e231d09b30507d3b8153a413bff66eb.zip |
added const
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; |