aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-09 07:27:26 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-09 07:27:26 +0800
commit9cf1c066fce4909e2ce2adebc713beef941508c6 (patch)
tree76388826ae2af11d4023bf82672668d69e720db5 /Types.cpp
parenta7b661d3be53b4c6a05401782ab8f90202a4f776 (diff)
downloaddexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.tar.gz
dexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.tar.zst
dexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.zip
Adjustments to Solidity compiler code for Function Hash
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Types.cpp b/Types.cpp
index 494bbd26..01fa7734 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -333,10 +333,9 @@ MemberList const& ContractType::getMembers() const
// We need to lazy-initialize it because of recursive references.
if (!m_members)
{
- auto interfaceFunctions = m_contract.getInterfaceFunctions();
map<string, shared_ptr<Type const>> members;
- for (auto it = interfaceFunctions.cbegin(); it != interfaceFunctions.cend(); ++it)
- members[it->second->getName()] = make_shared<FunctionType>(*it->second, false);
+ for (auto const& it: m_contract.getInterfaceFunctions())
+ members[it.second->getName()] = make_shared<FunctionType>(*it.second, false);
m_members.reset(new MemberList(members));
}
return *m_members;