*: use defaulted destructors

This commit is contained in:
Max Kellermann 2020-02-01 13:47:16 +01:00
parent faa04966af
commit 4c52001a35
6 changed files with 11 additions and 16 deletions

View File

@ -26,9 +26,7 @@
#include <assert.h>
InputStream::~InputStream() noexcept
{
}
InputStream::~InputStream() noexcept = default;
void
InputStream::Check()

View File

@ -26,7 +26,7 @@
TextInputStream::TextInputStream(InputStreamPtr &&_is) noexcept
:is(std::move(_is)) {}
TextInputStream::~TextInputStream() noexcept {}
TextInputStream::~TextInputStream() noexcept = default;
char *
TextInputStream::ReadLine()

View File

@ -28,8 +28,8 @@
#include <stdexcept>
NeighborGlue::NeighborGlue() noexcept {}
NeighborGlue::~NeighborGlue() noexcept {}
NeighborGlue::NeighborGlue() noexcept = default;
NeighborGlue::~NeighborGlue() noexcept = default;
static std::unique_ptr<NeighborExplorer>
CreateNeighborExplorer(EventLoop &loop, NeighborListener &listener,

View File

@ -29,7 +29,10 @@
#include <string.h>
AudioOutputSource::AudioOutputSource() noexcept {}
AudioOutputSource::AudioOutputSource() noexcept
{
}
AudioOutputSource::~AudioOutputSource() noexcept = default;
AudioFormat

View File

@ -179,13 +179,8 @@ CompositeStorage::Directory::MapToRelativeUTF8(std::string &buffer,
return false;
}
CompositeStorage::CompositeStorage() noexcept
{
}
CompositeStorage::~CompositeStorage()
{
}
CompositeStorage::CompositeStorage() noexcept = default;
CompositeStorage::~CompositeStorage() = default;
Storage *
CompositeStorage::GetMount(const char *uri) noexcept

View File

@ -49,8 +49,7 @@ public:
io_thread.Start();
}
~GlobalInit() {
}
~GlobalInit() = default;
EventLoop &GetEventLoop() {
return io_thread.GetEventLoop();