diff options
author | Rhett Aultman <roadriverrail@gmail.com> | 2017-07-19 22:19:21 +0800 |
---|---|---|
committer | Rhett Aultman <roadriverrail@gmail.com> | 2017-07-19 22:19:21 +0800 |
commit | a2a759f79288c95467baf965871891bc59864340 (patch) | |
tree | 133a649aa1c2f25545aa81262bf6f72042bee403 /libsolidity/analysis/StaticAnalyzer.cpp | |
parent | e506129aee5745e2b7bc8f4b96dcaa8adcc2c2ea (diff) | |
download | dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar.gz dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar.bz2 dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar.lz dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar.xz dexon-solidity-a2a759f79288c95467baf965871891bc59864340.tar.zst dexon-solidity-a2a759f79288c95467baf965871891bc59864340.zip |
Migrate over to ErrorReporter
Diffstat (limited to 'libsolidity/analysis/StaticAnalyzer.cpp')
-rw-r--r-- | libsolidity/analysis/StaticAnalyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index c81a46e7..46477e1e 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -138,7 +138,7 @@ bool StaticAnalyzer::visit(MemberAccess const& _memberAccess) if (m_constructor && m_currentContract) if (ContractType const* type = dynamic_cast<ContractType const*>(_memberAccess.expression().annotation().type.get())) if (type->contractDefinition() == *m_currentContract) - warning(_memberAccess.location(), "\"this\" used in constructor."); + m_errorReporter.warning(_memberAccess.location(), "\"this\" used in constructor."); return true; } |