From: Mikko Rasa Date: Thu, 17 Jun 2010 09:01:44 +0000 (+0000) Subject: Add some virtual destructors to shut up older gcc versions X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=commitdiff_plain;h=73c55fc88d8bad336fbd6cfecedc0cf18d06167c Add some virtual destructors to shut up older gcc versions --- 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; };