Skip to content

Commit

Permalink
Merge pull request #33 from wandernauta/checker-dtor
Browse files Browse the repository at this point in the history
Add virtual destructors to Checker and Notifier base classes
  • Loading branch information
berthubert committed Apr 5, 2024
2 parents 30b73ed + 239926b commit 5891f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions notifiers.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions simplomon.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5891f26

Please sign in to comment.