From 52808f67fa608b62d6d9ee81b266edb183e13d48 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 13 Feb 2015 17:22:53 +0100 Subject: EnumDeclaration -> EnumValue --- AST.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AST.cpp') diff --git a/AST.cpp b/AST.cpp index 65dc57e5..cdc1f6cb 100644 --- a/AST.cpp +++ b/AST.cpp @@ -206,7 +206,7 @@ vector, FunctionTypePointer>> const& ContractDefinition::getIn return *m_interfaceFunctionList; } -TypePointer EnumDeclaration::getType(ContractDefinition const*) const +TypePointer EnumvValue::getType(ContractDefinition const*) const { // LTODO: How to get the parent EnumDefinition and return its type here? return nullptr; @@ -263,8 +263,8 @@ void StructDefinition::checkRecursion() const void EnumDefinition::checkValidityOfMembers() const { - vector> members(getMembers()); - auto compareDecls = [](ASTPointer a, ASTPointer b) + vector> members(getMembers()); + auto compareDecls = [](ASTPointer a, ASTPointer b) { return a->getName() < b->getName(); }; @@ -283,7 +283,7 @@ TypePointer EnumDefinition::getType(ContractDefinition const*) const unsigned int EnumDefinition::getMemberValue(ASTString const& _member) const { unsigned int index = 0; - for (ASTPointer const& decl: m_members) + for (ASTPointer const& decl: m_members) { if (decl->getName() == _member) return index; -- cgit v1.2.3