[clang-tidy] use = default

Found with modernize-use-equals-default Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent dea0cc16
......@@ -30,10 +30,8 @@
#include <string.h>
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
......
......@@ -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;
......@@ -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<std::string>
ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const
......
......@@ -23,10 +23,8 @@
#include <string.h>
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
......
......@@ -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
......
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