[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 @@ ...@@ -30,10 +30,8 @@
#include <string.h> #include <string.h>
UPnPDirContent::~UPnPDirContent() /* this destructor exists here just so it won't get inlined */
{ UPnPDirContent::~UPnPDirContent() = default;
/* this destructor exists here just so it won't get inlined */
}
gcc_pure gcc_pure
static UPnPDirObject::ItemClass static UPnPDirObject::ItemClass
......
...@@ -19,7 +19,5 @@ ...@@ -19,7 +19,5 @@
#include "Object.hxx" #include "Object.hxx"
UPnPDirObject::~UPnPDirObject() noexcept /* this destructor exists here just so it won't get inlined */
{ UPnPDirObject::~UPnPDirObject() noexcept = default;
/* this destructor exists here just so it won't get inlined */
}
...@@ -44,10 +44,8 @@ ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device, ...@@ -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;
/* this destructor exists here just so it won't get inlined */
}
std::forward_list<std::string> std::forward_list<std::string>
ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const
......
...@@ -23,10 +23,8 @@ ...@@ -23,10 +23,8 @@
#include <string.h> #include <string.h>
UPnPDevice::~UPnPDevice() noexcept /* this destructor exists here just so it won't get inlined */
{ UPnPDevice::~UPnPDevice() noexcept = default;
/* this destructor exists here just so it won't get inlined */
}
/** /**
* An XML parser which constructs an UPnP device object from the * 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) ...@@ -90,10 +90,8 @@ SongFilter::SongFilter(TagType tag, const char *value, bool fold_case)
StringFilter(value, fold_case, fold_case, false))); StringFilter(value, fold_case, fold_case, false)));
} }
SongFilter::~SongFilter() /* this destructor exists here just so it won't get inlined */
{ SongFilter::~SongFilter() = default;
/* this destructor exists here just so it won't get inlined */
}
std::string std::string
SongFilter::ToExpression() const noexcept 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