aboutsummaryrefslogtreecommitdiffstats
path: root/DeclarationContainer.cpp
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.cpp
parent13640d7db82562592958fcce2d7ce8155cc7ea35 (diff)
downloaddexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.gz
dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.tar.zst
dexon-solidity-f636ac6fc4eda7591c1056475c1258af5309a264.zip
More const cleanup.
Diffstat (limited to 'DeclarationContainer.cpp')
-rw-r--r--DeclarationContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DeclarationContainer.cpp b/DeclarationContainer.cpp
index c0dea757..c7081bc7 100644
--- a/DeclarationContainer.cpp
+++ b/DeclarationContainer.cpp
@@ -28,7 +28,7 @@ namespace dev
namespace solidity
{
-bool DeclarationContainer::registerDeclaration(Declaration& _declaration, bool _update)
+bool DeclarationContainer::registerDeclaration(Declaration const& _declaration, bool _update)
{
if (!_update && m_declarations.find(_declaration.getName()) != m_declarations.end())
return false;
@@ -36,7 +36,7 @@ bool DeclarationContainer::registerDeclaration(Declaration& _declaration, bool _
return true;
}
-Declaration* DeclarationContainer::resolveName(ASTString const& _name, bool _recursive) const
+Declaration const* DeclarationContainer::resolveName(ASTString const& _name, bool _recursive) const
{
auto result = m_declarations.find(_name);
if (result != m_declarations.end())