diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-30 01:44:14 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-30 02:18:50 +0800 |
commit | 3701543ae8dd8ffbfd58e5648d45699468f10a55 (patch) | |
tree | 7b10e0bbbac6139c6cee92b9ebd040444507a311 /Types.cpp | |
parent | 04190798eba7a2996b28aee6d74b1c636f575a02 (diff) | |
download | dexon-solidity-3701543ae8dd8ffbfd58e5648d45699468f10a55.tar.gz dexon-solidity-3701543ae8dd8ffbfd58e5648d45699468f10a55.tar.zst dexon-solidity-3701543ae8dd8ffbfd58e5648d45699468f10a55.zip |
FunctionType now returns const ref for Declaration
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -499,7 +499,7 @@ MemberList const& ContractType::getMembers() const } else for (auto const& it: m_contract.getInterfaceFunctions()) - members[it.second->getDeclaration()->getName()] = it.second; + members[it.second->getDeclaration().getName()] = it.second; m_members.reset(new MemberList(members)); } return *m_members; @@ -522,7 +522,7 @@ u256 ContractType::getFunctionIdentifier(string const& _functionName) const { auto interfaceFunctions = m_contract.getInterfaceFunctions(); for (auto const& it: m_contract.getInterfaceFunctions()) - if (it.second->getDeclaration()->getName() == _functionName) + if (it.second->getDeclaration().getName() == _functionName) return FixedHash<4>::Arith(it.first); return Invalid256; |