From 951fa5cfd11f702340a98a7fbef7d806e454f866 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 19:25:18 +0100 Subject: Cleanup: Use "default" for default constructors and destructors --- ingen/LV2Features.hpp | 2 +- ingen/Serialiser.hpp | 1 + src/LV2Features.cpp | 4 ---- src/Serialiser.cpp | 3 +-- src/server/BlockFactory.cpp | 4 ---- src/server/BlockFactory.hpp | 3 ++- src/server/events/Delta.cpp | 4 ---- src/server/events/Delta.hpp | 2 +- 8 files changed, 6 insertions(+), 17 deletions(-) diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp index 06811294..75d5b377 100644 --- a/ingen/LV2Features.hpp +++ b/ingen/LV2Features.hpp @@ -35,7 +35,7 @@ class World; */ class INGEN_API LV2Features { public: - LV2Features(); + LV2Features() = default; class Feature { public: diff --git a/ingen/Serialiser.hpp b/ingen/Serialiser.hpp index 776b837e..1ac5c151 100644 --- a/ingen/Serialiser.hpp +++ b/ingen/Serialiser.hpp @@ -43,6 +43,7 @@ class INGEN_API Serialiser { public: explicit Serialiser(World& world); + virtual ~Serialiser(); /** Write a graph and all its contents as a complete bundle. */ diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp index 6ae057f2..cd03cccd 100644 --- a/src/LV2Features.cpp +++ b/src/LV2Features.cpp @@ -29,10 +29,6 @@ LV2Features::Feature::free_feature(LV2_Feature* feature) free(feature); } -LV2Features::LV2Features() -{ -} - void LV2Features::add_feature(const SPtr& feature) { diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index 10f587f4..ffcf4a84 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -112,8 +112,7 @@ Serialiser::Serialiser(World& world) : me{make_unique(world)} {} -Serialiser::~Serialiser() -{} +Serialiser::~Serialiser() = default; void Serialiser::Impl::write_manifest(const FilePath& bundle_path, diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp index 6fc5b9ee..9e1693df 100644 --- a/src/server/BlockFactory.cpp +++ b/src/server/BlockFactory.cpp @@ -50,10 +50,6 @@ BlockFactory::BlockFactory(ingen::World& world) load_internal_plugins(); } -BlockFactory::~BlockFactory() -{ -} - const BlockFactory::Plugins& BlockFactory::plugins() { diff --git a/src/server/BlockFactory.hpp b/src/server/BlockFactory.hpp index 8eafaea5..234a20fa 100644 --- a/src/server/BlockFactory.hpp +++ b/src/server/BlockFactory.hpp @@ -40,7 +40,8 @@ class BlockFactory : public Raul::Noncopyable { public: explicit BlockFactory(ingen::World& world); - ~BlockFactory(); + + ~BlockFactory() = default; /** Reload plugin list. * diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index 6ecddc1e..4e4887c5 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -105,10 +105,6 @@ Delta::Delta(Engine& engine, init(); } -Delta::~Delta() -{ -} - void Delta::init() { diff --git a/src/server/events/Delta.hpp b/src/server/events/Delta.hpp index 2aa2ff90..1dce2663 100644 --- a/src/server/events/Delta.hpp +++ b/src/server/events/Delta.hpp @@ -62,7 +62,7 @@ public: SampleCount timestamp, const ingen::SetProperty& msg); - ~Delta(); + ~Delta() = default; void add_set_event(const char* port_symbol, const void* value, -- cgit v1.2.1