aboutsummaryrefslogtreecommitdiffstats
path: root/DeclarationContainer.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-06 09:32:51 +0800
committerChristian <c@ethdev.com>2014-12-08 20:15:43 +0800
commitf636ac6fc4eda7591c1056475c1258af5309a264 (patch)
treecd209788dbe68227a22b859093e86906f0a5e73a /DeclarationContainer.h
parent13640d7db82562592958fcce2d7ce8155cc7ea35 (diff)
downloaddexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.gz
dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.zst
dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.zip
More const cleanup.
Diffstat (limited to 'DeclarationContainer.h')
-rw-r--r--DeclarationContainer.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/DeclarationContainer.h b/DeclarationContainer.h
index e1b363e0..c0a0b42c 100644
--- a/DeclarationContainer.h
+++ b/DeclarationContainer.h
@@ -39,18 +39,19 @@ namespace solidity
class DeclarationContainer
{
public:
- explicit DeclarationContainer(Declaration* _enclosingDeclaration = nullptr, DeclarationContainer* _enclosingContainer = nullptr):
+ explicit DeclarationContainer(Declaration const* _enclosingDeclaration = nullptr,
+ DeclarationContainer const* _enclosingContainer = nullptr):
m_enclosingDeclaration(_enclosingDeclaration), m_enclosingContainer(_enclosingContainer) {}
/// Registers the declaration in the scope unless its name is already declared. Returns true iff
/// it was not yet declared.
- bool registerDeclaration(Declaration& _declaration, bool _update = false);
- Declaration* resolveName(ASTString const& _name, bool _recursive = false) const;
- Declaration* getEnclosingDeclaration() const { return m_enclosingDeclaration; }
+ bool registerDeclaration(Declaration const& _declaration, bool _update = false);
+ Declaration const* resolveName(ASTString const& _name, bool _recursive = false) const;
+ Declaration const* getEnclosingDeclaration() const { return m_enclosingDeclaration; }
private:
- Declaration* m_enclosingDeclaration;
- DeclarationContainer* m_enclosingContainer;
- std::map<ASTString, Declaration*> m_declarations;
+ Declaration const* m_enclosingDeclaration;
+ DeclarationContainer const* m_enclosingContainer;
+ std::map<ASTString, Declaration const*> m_declarations;
};
}