Commit 4c52001a authored by Max Kellermann's avatar Max Kellermann

*: use defaulted destructors

parent faa04966
...@@ -26,9 +26,7 @@ ...@@ -26,9 +26,7 @@
#include <assert.h> #include <assert.h>
InputStream::~InputStream() noexcept InputStream::~InputStream() noexcept = default;
{
}
void void
InputStream::Check() InputStream::Check()
......
...@@ -26,7 +26,7 @@ ...@@ -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()
......
...@@ -28,8 +28,8 @@ ...@@ -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,
......
...@@ -29,7 +29,10 @@ ...@@ -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
......
...@@ -179,13 +179,8 @@ CompositeStorage::Directory::MapToRelativeUTF8(std::string &buffer, ...@@ -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
......
...@@ -49,8 +49,7 @@ public: ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment