diff options
author | Christian <c@ethdev.com> | 2014-12-04 00:45:12 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-04 01:51:59 +0800 |
commit | 254df50feab6bb4c9f013257591b73919e4013a5 (patch) | |
tree | f8258a07f87046e1695373bc6024af87f51f51be /DeclarationContainer.cpp | |
parent | 328387d6d0a14143f1634df11036a91fad85cec9 (diff) | |
download | dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.gz dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.zst dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.zip |
Multi-source and multi-contract compiler.
Diffstat (limited to 'DeclarationContainer.cpp')
-rw-r--r-- | DeclarationContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DeclarationContainer.cpp b/DeclarationContainer.cpp index 6ea9c28c..c0dea757 100644 --- a/DeclarationContainer.cpp +++ b/DeclarationContainer.cpp @@ -28,9 +28,9 @@ namespace dev namespace solidity { -bool DeclarationContainer::registerDeclaration(Declaration& _declaration) +bool DeclarationContainer::registerDeclaration(Declaration& _declaration, bool _update) { - if (m_declarations.find(_declaration.getName()) != m_declarations.end()) + if (!_update && m_declarations.find(_declaration.getName()) != m_declarations.end()) return false; m_declarations[_declaration.getName()] = &_declaration; return true; |