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 /GlobalContext.cpp | |
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 'GlobalContext.cpp')
-rw-r--r-- | GlobalContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/GlobalContext.cpp b/GlobalContext.cpp index 45242bb1..915d06bf 100644 --- a/GlobalContext.cpp +++ b/GlobalContext.cpp @@ -68,16 +68,16 @@ void GlobalContext::setCurrentContract(ContractDefinition const& _contract) m_currentContract = &_contract; } -vector<Declaration*> GlobalContext::getDeclarations() const +vector<Declaration const*> GlobalContext::getDeclarations() const { - vector<Declaration*> declarations; + vector<Declaration const*> declarations; declarations.reserve(m_magicVariables.size() + 1); - for (ASTPointer<Declaration> const& variable: m_magicVariables) + for (ASTPointer<Declaration const> const& variable: m_magicVariables) declarations.push_back(variable.get()); return declarations; } -MagicVariableDeclaration* GlobalContext::getCurrentThis() const +MagicVariableDeclaration const* GlobalContext::getCurrentThis() const { if (!m_thisPointer[m_currentContract]) m_thisPointer[m_currentContract] = make_shared<MagicVariableDeclaration>( |