aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-02 19:08:32 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-02 19:08:32 +0800
commit4f13859f8c010410b7497ed860c409a8b899538c (patch)
treee116266ccf1a717b8c76e4f3c36a06b495debeb1 /AST.cpp
parentbbaa9fef6c8272c567af49ecea4f68c59c335778 (diff)
downloaddexon-solidity-4f13859f8c010410b7497ed860c409a8b899538c.tar.gz
dexon-solidity-4f13859f8c010410b7497ed860c409a8b899538c.tar.zst
dexon-solidity-4f13859f8c010410b7497ed860c409a8b899538c.zip
Using normal pointer in getInheritableMembers()
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/AST.cpp b/AST.cpp
index e5aef4cb..4c6db6a2 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -209,13 +209,13 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
return *m_interfaceFunctionList;
}
-vector<ASTPointer<Declaration>> const& ContractDefinition::getInheritableMembers() const
+vector<Declaration const*> const& ContractDefinition::getInheritableMembers() const
{
if (!m_inheritableMembers)
{
set<string> memberSeen;
- m_inheritableMembers.reset(new vector<ASTPointer<Declaration>>());
- auto addInheritableMember = [&](ASTPointer<Declaration> const& _decl)
+ m_inheritableMembers.reset(new vector<Declaration const*>());
+ auto addInheritableMember = [&](Declaration const* _decl)
{
if (memberSeen.count(_decl->getName()) == 0 && _decl->isVisibleInDerivedContracts())
{
@@ -225,13 +225,13 @@ vector<ASTPointer<Declaration>> const& ContractDefinition::getInheritableMembers
};
for (ASTPointer<FunctionDefinition> const& f: getDefinedFunctions())
- addInheritableMember(f);
+ addInheritableMember(f.get());
for (ASTPointer<VariableDeclaration> const& v: getStateVariables())
- addInheritableMember(v);
+ addInheritableMember(v.get());
for (ASTPointer<StructDefinition> const& s: getDefinedStructs())
- addInheritableMember(s);
+ addInheritableMember(s.get());
}
return *m_inheritableMembers;
}