aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-30 02:41:07 +0800
committerChristian <c@ethdev.com>2014-10-30 02:41:07 +0800
commit5d287e7ea2e1847bb5fc4c67c520248c7060c4c6 (patch)
treed580aa8d21a94c816760f775f92187a91bd3673d /AST.h
parent62822ffd92cfef4b76cea44783c67278950a7e79 (diff)
downloaddexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.tar.gz
dexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.tar.zst
dexon-solidity-5d287e7ea2e1847bb5fc4c67c520248c7060c4c6.zip
Further const placement changes.
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/AST.h b/AST.h
index e6657280..e7282660 100644
--- a/AST.h
+++ b/AST.h
@@ -89,7 +89,7 @@ public:
ASTNode(_location), m_name(_name) {}
/// Returns the declared name.
- const ASTString& getName() const { return *m_name; }
+ ASTString const& getName() const { return *m_name; }
private:
ASTPointer<ASTString> m_name;
@@ -259,7 +259,7 @@ public:
virtual void accept(ASTVisitor& _visitor) override;
virtual std::shared_ptr<Type> toType() override { return Type::fromUserDefinedTypeName(*this); }
- const ASTString& getName() const { return *m_name; }
+ ASTString const& getName() const { return *m_name; }
void setReferencedStruct(StructDefinition& _referencedStruct) { m_referencedStruct = &_referencedStruct; }
StructDefinition const* getReferencedStruct() const { return m_referencedStruct; }
@@ -549,7 +549,7 @@ public:
ASTPointer<ASTString> const& _memberName):
Expression(_location), m_expression(_expression), m_memberName(_memberName) {}
virtual void accept(ASTVisitor& _visitor) override;
- const ASTString& getMemberName() const { return *m_memberName; }
+ ASTString const& getMemberName() const { return *m_memberName; }
virtual void checkTypeRequirements() override;
private: