[clang-tidy] use = default

Found with modernize-use-equals-default

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-02 16:52:46 -08:00
parent dea0cc165d
commit 6d3190fe5f
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
5 changed files with 10 additions and 20 deletions

View File

@ -30,10 +30,8 @@
#include <string.h>
UPnPDirContent::~UPnPDirContent()
{
/* this destructor exists here just so it won't get inlined */
}
UPnPDirContent::~UPnPDirContent() = default;
gcc_pure
static UPnPDirObject::ItemClass

View File

@ -19,7 +19,5 @@
#include "Object.hxx"
UPnPDirObject::~UPnPDirObject() noexcept
{
/* this destructor exists here just so it won't get inlined */
}
UPnPDirObject::~UPnPDirObject() noexcept = default;

View File

@ -44,10 +44,8 @@ ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
}
}
ContentDirectoryService::~ContentDirectoryService() noexcept
{
/* 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

View File

@ -23,10 +23,8 @@
#include <string.h>
UPnPDevice::~UPnPDevice() noexcept
{
/* 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

View File

@ -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 */
}
SongFilter::~SongFilter() = default;
std::string
SongFilter::ToExpression() const noexcept