From f94b793472a8427e0507862cd5595cc92e70f53c Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Wed, 2 May 2018 13:29:16 +0200 Subject: Add virtual destructors on base classes. --- libsolidity/formal/SolverInterface.h | 1 + libsolidity/formal/SymbolicVariable.h | 1 + 2 files changed, 2 insertions(+) (limited to 'libsolidity/formal') diff --git a/libsolidity/formal/SolverInterface.h b/libsolidity/formal/SolverInterface.h index e127bb55..16796684 100644 --- a/libsolidity/formal/SolverInterface.h +++ b/libsolidity/formal/SolverInterface.h @@ -193,6 +193,7 @@ DEV_SIMPLE_EXCEPTION(SolverError); class SolverInterface { public: + virtual ~SolverInterface() = default; virtual void reset() = 0; virtual void push() = 0; diff --git a/libsolidity/formal/SymbolicVariable.h b/libsolidity/formal/SymbolicVariable.h index e4e4ea8d..e29ded26 100644 --- a/libsolidity/formal/SymbolicVariable.h +++ b/libsolidity/formal/SymbolicVariable.h @@ -40,6 +40,7 @@ public: Declaration const& _decl, smt::SolverInterface& _interface ); + virtual ~SymbolicVariable() = default; smt::Expression operator()(int _seq) const { -- cgit