From a7f9815c0f68a7cb9571193ded851fbedb418422 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 16 Oct 2014 23:49:45 +0200 Subject: Coding style and cleanup --- NameAndTypeResolver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'NameAndTypeResolver.cpp') diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index ada987b0..628d9476 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -42,18 +42,18 @@ void NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract) DeclarationRegistrationHelper registrar(m_scopes, _contract); m_currentScope = &m_scopes[&_contract]; //@todo structs - for (ptr const & variable : _contract.getStateVariables()) + for (ptr const& variable: _contract.getStateVariables()) ReferencesResolver resolver(*variable, *this, nullptr); - for (ptr const & function : _contract.getDefinedFunctions()) + for (ptr const& function: _contract.getDefinedFunctions()) { m_currentScope = &m_scopes[function.get()]; ReferencesResolver referencesResolver(*function, *this, function->getReturnParameterList().get()); } - // First, all function parameter types need to be resolved before we can check + // First, the parameter types of all functions need to be resolved before we can check // the types, since it is possible to call functions that are only defined later // in the source. - for (ptr const & function : _contract.getDefinedFunctions()) + for (ptr const& function: _contract.getDefinedFunctions()) { m_currentScope = &m_scopes[function.get()]; function->getBody().checkTypeRequirements(); -- cgit