From: Arnaud Giersch Date: Mon, 2 Jul 2012 10:47:40 +0000 (+0200) Subject: Add virtual destructors (fix gcc warnings). X-Git-Tag: v0.3~9 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/164f26e363e3e855d74b681b208847807d3bbcd8 Add virtual destructors (fix gcc warnings). --- 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; };