diff --git a/src/db/plugins/upnp/Directory.cxx b/src/db/plugins/upnp/Directory.cxx index de344cba3..7e2ce4347 100644 --- a/src/db/plugins/upnp/Directory.cxx +++ b/src/db/plugins/upnp/Directory.cxx @@ -30,10 +30,8 @@ #include -UPnPDirContent::~UPnPDirContent() -{ - /* this destructor exists here just so it won't get inlined */ -} +/* this destructor exists here just so it won't get inlined */ +UPnPDirContent::~UPnPDirContent() = default; gcc_pure static UPnPDirObject::ItemClass diff --git a/src/db/plugins/upnp/Object.cxx b/src/db/plugins/upnp/Object.cxx index 426d03f59..f693f5b39 100644 --- a/src/db/plugins/upnp/Object.cxx +++ b/src/db/plugins/upnp/Object.cxx @@ -19,7 +19,5 @@ #include "Object.hxx" -UPnPDirObject::~UPnPDirObject() noexcept -{ - /* this destructor exists here just so it won't get inlined */ -} +/* this destructor exists here just so it won't get inlined */ +UPnPDirObject::~UPnPDirObject() noexcept = default; diff --git a/src/lib/upnp/ContentDirectoryService.cxx b/src/lib/upnp/ContentDirectoryService.cxx index 539da0fa5..fa8eaace3 100644 --- a/src/lib/upnp/ContentDirectoryService.cxx +++ b/src/lib/upnp/ContentDirectoryService.cxx @@ -44,10 +44,8 @@ ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device, } } -ContentDirectoryService::~ContentDirectoryService() noexcept -{ - /* this destructor exists here just so it won't get inlined */ -} +/* this destructor exists here just so it won't get inlined */ +ContentDirectoryService::~ContentDirectoryService() noexcept = default; std::forward_list ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const diff --git a/src/lib/upnp/Device.cxx b/src/lib/upnp/Device.cxx index 37a39686d..d382ffdf8 100644 --- a/src/lib/upnp/Device.cxx +++ b/src/lib/upnp/Device.cxx @@ -23,10 +23,8 @@ #include -UPnPDevice::~UPnPDevice() noexcept -{ - /* this destructor exists here just so it won't get inlined */ -} +/* this destructor exists here just so it won't get inlined */ +UPnPDevice::~UPnPDevice() noexcept = default; /** * An XML parser which constructs an UPnP device object from the diff --git a/src/song/Filter.cxx b/src/song/Filter.cxx index c3c566f85..6ec9d3e7f 100644 --- a/src/song/Filter.cxx +++ b/src/song/Filter.cxx @@ -90,10 +90,8 @@ SongFilter::SongFilter(TagType tag, const char *value, bool fold_case) StringFilter(value, fold_case, fold_case, false))); } -SongFilter::~SongFilter() -{ - /* this destructor exists here just so it won't get inlined */ -} +/* this destructor exists here just so it won't get inlined */ +SongFilter::~SongFilter() = default; std::string SongFilter::ToExpression() const noexcept