aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTVisitor.h
diff options
context:
space:
mode:
authorAlexander Arlt <alexander.arlt@arlt-labs.com>2018-05-02 19:29:16 +0800
committerAlexander Arlt <alexander.arlt@arlt-labs.com>2018-05-02 19:29:16 +0800
commitf94b793472a8427e0507862cd5595cc92e70f53c (patch)
treeb017d487890f286a05e5cfe97215f5e2a3985bb8 /libsolidity/ast/ASTVisitor.h
parent5cce2e552baf1f7431c99500da74cb929360c3b8 (diff)
downloaddexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.gz
dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.tar.zst
dexon-solidity-f94b793472a8427e0507862cd5595cc92e70f53c.zip
Add virtual destructors on base classes.
Diffstat (limited to 'libsolidity/ast/ASTVisitor.h')
-rw-r--r--libsolidity/ast/ASTVisitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTVisitor.h b/libsolidity/ast/ASTVisitor.h
index b1389f0f..6c0ce6f8 100644
--- a/libsolidity/ast/ASTVisitor.h
+++ b/libsolidity/ast/ASTVisitor.h
@@ -43,6 +43,7 @@ namespace solidity
class ASTVisitor
{
public:
+ virtual ~ASTVisitor() = default;
virtual bool visit(SourceUnit& _node) { return visitNode(_node); }
virtual bool visit(PragmaDirective& _node) { return visitNode(_node); }
virtual bool visit(ImportDirective& _node) { return visitNode(_node); }
@@ -147,6 +148,7 @@ protected:
class ASTConstVisitor
{
public:
+ virtual ~ASTConstVisitor() = default;
virtual bool visit(SourceUnit const& _node) { return visitNode(_node); }
virtual bool visit(PragmaDirective const& _node) { return visitNode(_node); }
virtual bool visit(ImportDirective const& _node) { return visitNode(_node); }