From 164f26e363e3e855d74b681b208847807d3bbcd8 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 2 Jul 2012 12:47:40 +0200 Subject: [PATCH] Add virtual destructors (fix gcc warnings). --- deployment.h | 1 + named_object_list.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/deployment.h b/deployment.h index b3fa43a..e1e0d92 100644 --- a/deployment.h +++ b/deployment.h @@ -10,6 +10,7 @@ void MY_launch_application(); class deployment_generator { public: deployment_generator(); + virtual ~deployment_generator() { } size_t size() const { return hosts.size(); } void set_load(int host, double load); diff --git a/named_object_list.h b/named_object_list.h index 94d281e..2c691fa 100644 --- a/named_object_list.h +++ b/named_object_list.h @@ -24,6 +24,7 @@ protected: std::string description; creator_base(const std::string& descr): description(descr) { } creator_base(const char* descr): description(descr) { } + virtual ~creator_base() { } virtual Base* operator()() const = 0; }; @@ -87,6 +88,7 @@ protected: std::string description; creator_base(const std::string& descr): description(descr) { } creator_base(const char* descr): description(descr) { } + virtual ~creator_base() { } virtual Base* operator()(Arg1, Arg2) const = 0; }; -- 2.39.5