summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:25:18 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit951fa5cfd11f702340a98a7fbef7d806e454f866 (patch)
treebbc83efa02e1185fb48c1848ae58e9a933430bce
parent3283bca45475a597686378f232b65d052422c6b8 (diff)
downloadingen-951fa5cfd11f702340a98a7fbef7d806e454f866.tar.gz
ingen-951fa5cfd11f702340a98a7fbef7d806e454f866.tar.bz2
ingen-951fa5cfd11f702340a98a7fbef7d806e454f866.zip
Cleanup: Use "default" for default constructors and destructors
-rw-r--r--ingen/LV2Features.hpp2
-rw-r--r--ingen/Serialiser.hpp1
-rw-r--r--src/LV2Features.cpp4
-rw-r--r--src/Serialiser.cpp3
-rw-r--r--src/server/BlockFactory.cpp4
-rw-r--r--src/server/BlockFactory.hpp3
-rw-r--r--src/server/events/Delta.cpp4
-rw-r--r--src/server/events/Delta.hpp2
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>& 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<Impl>(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,