From 73c55fc88d8bad336fbd6cfecedc0cf18d06167c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 17 Jun 2010 09:01:44 +0000 Subject: [PATCH] Add some virtual destructors to shut up older gcc versions --- source/commandinterpreter.h | 3 ++- source/tool.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/commandinterpreter.h b/source/commandinterpreter.h index 6324522..cc6246e 100644 --- a/source/commandinterpreter.h +++ b/source/commandinterpreter.h @@ -24,8 +24,9 @@ public: protected: Command() { } - public: + virtual ~Command() { } + void set_help(const std::string &); void set_help(const std::string &, const std::string &); const std::string &get_description() const { return description; } diff --git a/source/tool.h b/source/tool.h index b299e2a..0d234d2 100644 --- a/source/tool.h +++ b/source/tool.h @@ -19,8 +19,9 @@ public: { protected: Factory(); - public: + virtual ~Factory() { } + virtual Tool *create(GlDbg &) const = 0; }; -- 2.43.0