diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 00:34:46 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | b20ce4451bb4c2b64b112b8654b36502ae654a24 (patch) | |
tree | d9ecfcbf2a386e546f25594f377ceb669bd22997 /AST.cpp | |
parent | fb4ff4af286f66dab3fde5bf33815c407f56b2db (diff) | |
download | dexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.tar.gz dexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.tar.zst dexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.zip |
Typo in EnumValue
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -206,7 +206,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn return *m_interfaceFunctionList; } -TypePointer EnumvValue::getType(ContractDefinition const*) const +TypePointer EnumValue::getType(ContractDefinition const*) const { EnumDefinition const* parentDef = dynamic_cast<EnumDefinition const*>(getScope()); return make_shared<EnumType>(*parentDef); @@ -263,8 +263,8 @@ void StructDefinition::checkRecursion() const void EnumDefinition::checkValidityOfMembers() const { - vector<ASTPointer<EnumvValue>> members(getMembers()); - auto compareDecls = [](ASTPointer<EnumvValue> a, ASTPointer<EnumvValue> b) + vector<ASTPointer<EnumValue>> members(getMembers()); + auto compareDecls = [](ASTPointer<EnumValue> a, ASTPointer<EnumValue> 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<EnumvValue> const& decl: m_members) + for (ASTPointer<EnumValue> const& decl: m_members) { if (decl->getName() == _member) return index; |