]> git.tdb.fi Git - gldbg.git/commitdiff
Add some virtual destructors to shut up older gcc versions
authorMikko Rasa <tdb@tdb.fi>
Thu, 17 Jun 2010 09:01:44 +0000 (09:01 +0000)
committerMikko Rasa <tdb@tdb.fi>
Thu, 17 Jun 2010 09:01:44 +0000 (09:01 +0000)
source/commandinterpreter.h
source/tool.h

index 63245227844d0351c41959d26022d225787cb138..cc6246e927390465301983e03cd290662a8d37e3 100644 (file)
@@ -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; }
index b299e2a16024b2c0132eaa709e735c46e8cb5712..0d234d2caf9c47e196096777635602913f80d496 100644 (file)
@@ -19,8 +19,9 @@ public:
        {
        protected:
                Factory();
-
        public:
+               virtual ~Factory() { }
+
                virtual Tool *create(GlDbg &) const = 0;
        };