*: 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> #include <assert.h>
InputStream::~InputStream() noexcept InputStream::~InputStream() noexcept = default;
{
}
void void
InputStream::Check() InputStream::Check()

View File

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

View File

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

View File

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

View File

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

View File

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