diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-02-02 16:52:46 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-02-16 17:10:18 -0800 |
commit | 6d3190fe5fa7501c5f09407ff9de1e622bb57ef2 (patch) | |
tree | 00d55ac9aba00f1943e4ddc809392f08e3f07222 /src | |
parent | dea0cc165da9da5a04fa254e7f4a6a52699785c8 (diff) |
[clang-tidy] use = default
Found with modernize-use-equals-default
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/db/plugins/upnp/Directory.cxx | 6 | ||||
-rw-r--r-- | src/db/plugins/upnp/Object.cxx | 6 | ||||
-rw-r--r-- | src/lib/upnp/ContentDirectoryService.cxx | 6 | ||||
-rw-r--r-- | src/lib/upnp/Device.cxx | 6 | ||||
-rw-r--r-- | 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 <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 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<std::string> 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 <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 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 |