From 94a2c91f397c2c155fdedf1c1cc75b6532f62e5f Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Tue, 21 Dec 2021 18:30:22 +0000 Subject: [PATCH] fix a few compiler warnings --- src/tactic/user_propagator_base.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/tactic/user_propagator_base.h b/src/tactic/user_propagator_base.h index 534b9dbc0..403df8af5 100644 --- a/src/tactic/user_propagator_base.h +++ b/src/tactic/user_propagator_base.h @@ -14,7 +14,7 @@ namespace user_propagator { class context_obj { public: - virtual ~context_obj() {} + virtual ~context_obj() = default; }; typedef std::function final_eh_t; @@ -33,11 +33,7 @@ namespace user_propagator { enum kind_t { OP_USER_PROPAGATE }; - virtual ~plugin() {} - - virtual decl_plugin* mk_fresh() { return alloc(plugin); } - - family_id get_family_id() const { return m_family_id; } + decl_plugin* mk_fresh() override { return alloc(plugin); } sort* mk_sort(decl_kind k, unsigned num_parameters, parameter const* parameters) override { UNREACHABLE(); @@ -45,7 +41,7 @@ namespace user_propagator { } func_decl* mk_func_decl(decl_kind k, unsigned num_parameters, parameter const* parameters, - unsigned arity, sort* const* domain, sort* range) { + unsigned arity, sort* const* domain, sort* range) override { UNREACHABLE(); return nullptr; }