diff options
author | Christian <c@ethdev.com> | 2014-12-06 09:32:51 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-08 20:15:43 +0800 |
commit | f636ac6fc4eda7591c1056475c1258af5309a264 (patch) | |
tree | cd209788dbe68227a22b859093e86906f0a5e73a /DeclarationContainer.h | |
parent | 13640d7db82562592958fcce2d7ce8155cc7ea35 (diff) | |
download | dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.gz dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.bz2 dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.lz dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.xz dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.zst dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.zip |
More const cleanup.
Diffstat (limited to 'DeclarationContainer.h')
-rw-r--r-- | DeclarationContainer.h | 15 |
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; }; } |