aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTVisitor.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-11-21 23:16:08 +0800
committerGitHub <noreply@github.com>2018-11-21 23:16:08 +0800
commitc9ee30294c3db078a11588627acbbd73f87d83b7 (patch)
tree13a8971989ca9c7482fd9264663cd6f339a25889 /libsolidity/ast/ASTVisitor.h
parent8e98885c531853e51673a350008305065ef89efb (diff)
parentea8b7d803ebd151401be7479f48afb0ad19f5f74 (diff)
downloaddexon-solidity-c9ee30294c3db078a11588627acbbd73f87d83b7.tar.gz
dexon-solidity-c9ee30294c3db078a11588627acbbd73f87d83b7.tar.zst
dexon-solidity-c9ee30294c3db078a11588627acbbd73f87d83b7.zip
Merge pull request #5444 from Mordax/issue-5168-rmvirtual
Removing redundant virtual from override function declaration
Diffstat (limited to 'libsolidity/ast/ASTVisitor.h')
-rw-r--r--libsolidity/ast/ASTVisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTVisitor.h b/libsolidity/ast/ASTVisitor.h
index 6c0ce6f8..1a761032 100644
--- a/libsolidity/ast/ASTVisitor.h
+++ b/libsolidity/ast/ASTVisitor.h
@@ -262,8 +262,8 @@ public:
): m_onVisit(_onVisit), m_onEndVisit(_onEndVisit) {}
protected:
- virtual bool visitNode(ASTNode const& _n) override { return m_onVisit ? m_onVisit(_n) : true; }
- virtual void endVisitNode(ASTNode const& _n) override { m_onEndVisit(_n); }
+ bool visitNode(ASTNode const& _n) override { return m_onVisit ? m_onVisit(_n) : true; }
+ void endVisitNode(ASTNode const& _n) override { m_onEndVisit(_n); }
private:
std::function<bool(ASTNode const&)> m_onVisit;