From 83947382ecff039846cc345e0ccd9c429aa5e1e5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jan 2010 16:16:18 +0000 Subject: Add missing base class virtual destructor stubs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2366 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/Connection.hpp | 1 + src/common/interface/Resource.hpp | 1 + src/engine/Engine.hpp | 1 - src/engine/ingen.lv2/ingen_lv2.cpp | 1 - src/module/Module.hpp | 3 ++- 5 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/interface/Connection.hpp b/src/common/interface/Connection.hpp index a4ca90c2..4cba7196 100644 --- a/src/common/interface/Connection.hpp +++ b/src/common/interface/Connection.hpp @@ -31,6 +31,7 @@ namespace Shared { class Connection { public: + virtual ~Connection() {} virtual const Raul::Path src_port_path() const = 0; virtual const Raul::Path dst_port_path() const = 0; }; diff --git a/src/common/interface/Resource.hpp b/src/common/interface/Resource.hpp index 99bd3ef6..5c9a90eb 100644 --- a/src/common/interface/Resource.hpp +++ b/src/common/interface/Resource.hpp @@ -30,6 +30,7 @@ namespace Shared { class Resource { public: + virtual ~Resource() {} typedef std::multimap Properties; virtual const Raul::URI uri() const = 0; diff --git a/src/engine/Engine.hpp b/src/engine/Engine.hpp index beb505cf..1b2a1276 100644 --- a/src/engine/Engine.hpp +++ b/src/engine/Engine.hpp @@ -109,7 +109,6 @@ private: ProcessSlaves _process_slaves; Ingen::Shared::World* _world; SharedPtr _driver; - SharedPtr _midi_driver; Raul::Maid* _maid; PostProcessor* _post_processor; ClientBroadcaster* _broadcaster; diff --git a/src/engine/ingen.lv2/ingen_lv2.cpp b/src/engine/ingen.lv2/ingen_lv2.cpp index 8eea78ed..598c2802 100644 --- a/src/engine/ingen.lv2/ingen_lv2.cpp +++ b/src/engine/ingen.lv2/ingen_lv2.cpp @@ -106,7 +106,6 @@ ingen_cleanup(LV2_Handle instance) static void ingen_connect_port(LV2_Handle instance, uint32_t port, void* data) { - //IngenPlugin* plugin = (IngenPlugin*)instance; } diff --git a/src/module/Module.hpp b/src/module/Module.hpp index c9ac198f..7d2aec6e 100644 --- a/src/module/Module.hpp +++ b/src/module/Module.hpp @@ -32,6 +32,7 @@ class World; * All components of Ingen reside in one of these. */ struct Module { + virtual ~Module() {} virtual void load(Ingen::Shared::World* world) = 0; SharedPtr library; @@ -41,4 +42,4 @@ struct Module { } // namespace Shared } // namespace Ingen -#endif //INGEN_MODULE_HPP +#endif // INGEN_MODULE_HPP -- cgit v1.2.1