aboutsummaryrefslogtreecommitdiffstats
path: root/GlobalContext.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-04 00:45:12 +0800
committerChristian <c@ethdev.com>2014-12-04 01:51:59 +0800
commit254df50feab6bb4c9f013257591b73919e4013a5 (patch)
treef8258a07f87046e1695373bc6024af87f51f51be /GlobalContext.cpp
parent328387d6d0a14143f1634df11036a91fad85cec9 (diff)
downloaddexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.gz
dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.zst
dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.zip
Multi-source and multi-contract compiler.
Diffstat (limited to 'GlobalContext.cpp')
-rw-r--r--GlobalContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/GlobalContext.cpp b/GlobalContext.cpp
index d8b63707..45242bb1 100644
--- a/GlobalContext.cpp
+++ b/GlobalContext.cpp
@@ -74,11 +74,10 @@ vector<Declaration*> GlobalContext::getDeclarations() const
declarations.reserve(m_magicVariables.size() + 1);
for (ASTPointer<Declaration> const& variable: m_magicVariables)
declarations.push_back(variable.get());
- declarations.push_back(getCurrentThis());
return declarations;
}
-MagicVariableDeclaration*GlobalContext::getCurrentThis() const
+MagicVariableDeclaration* GlobalContext::getCurrentThis() const
{
if (!m_thisPointer[m_currentContract])
m_thisPointer[m_currentContract] = make_shared<MagicVariableDeclaration>(