From b5a786dda19e54fa587b1b693e7a139818d65b9e Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Wed, 28 Jan 2015 18:06:45 +0100 Subject: Various fixes pertaining to State Variable accessors --- AST.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AST.cpp') diff --git a/AST.cpp b/AST.cpp index a23846a0..d95a254e 100644 --- a/AST.cpp +++ b/AST.cpp @@ -155,7 +155,7 @@ vector, std::shared_ptr, Declaration cons } for (ASTPointer const& v: contract->getStateVariables()) - if (v->isPublic()) + if (v->isPublic() && functionsSeen.count(v->getName()) == 0) { FunctionType ftype(*v); functionsSeen.insert(v->getName()); @@ -519,12 +519,12 @@ void Literal::checkTypeRequirements() BOOST_THROW_EXCEPTION(createTypeError("Invalid literal value.")); } -std::string ParamDescription::getName() const +std::string const& ParamDescription::getName() const { return m_description.first; } -std::string ParamDescription::getType() const +std::string const& ParamDescription::getType() const { return m_description.second; } -- cgit