diff --git a/notifiers.hh b/notifiers.hh index a2c749c..911d805 100644 --- a/notifiers.hh +++ b/notifiers.hh @@ -17,11 +17,7 @@ public: Notifier(bool) { } - - ~Notifier() - { - // fmt::print("A notifier was destroyed\n"); - } + virtual ~Notifier() = default; virtual void alert(const std::string& message) = 0; std::string getNotifierName() { return d_notifierName; } void bulkAlert(const std::string& textBody); diff --git a/simplomon.hh b/simplomon.hh index dcbaa32..de52be9 100644 --- a/simplomon.hh +++ b/simplomon.hh @@ -66,6 +66,7 @@ public: // fmt::print("Adding notifier {}\n", n->getNotifierName()); } Checker(const Checker&) = delete; + virtual ~Checker() = default; void Perform() { d_reasons = this->perform();