From a2a759f79288c95467baf965871891bc59864340 Mon Sep 17 00:00:00 2001 From: Rhett Aultman Date: Wed, 19 Jul 2017 07:19:21 -0700 Subject: [PATCH] Migrate over to ErrorReporter --- libsolidity/analysis/StaticAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index c81a46e7e..46477e1e0 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(_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; }