aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-30 01:44:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-30 02:18:50 +0800
commit3701543ae8dd8ffbfd58e5648d45699468f10a55 (patch)
tree7b10e0bbbac6139c6cee92b9ebd040444507a311 /Types.cpp
parent04190798eba7a2996b28aee6d74b1c636f575a02 (diff)
downloaddexon-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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 38caaf8f..bebb4be1 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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;