From 6d3190fe5fa7501c5f09407ff9de1e622bb57ef2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 2 Feb 2020 16:52:46 -0800 Subject: [PATCH] [clang-tidy] use = default Found with modernize-use-equals-default Signed-off-by: Rosen Penev --- src/db/plugins/upnp/Directory.cxx | 6 ++---- src/db/plugins/upnp/Object.cxx | 6 ++---- src/lib/upnp/ContentDirectoryService.cxx | 6 ++---- src/lib/upnp/Device.cxx | 6 ++---- src/song/Filter.cxx | 6 ++---- 5 files changed, 10 insertions(+), 20 deletions(-) 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