summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-02-02 16:52:46 -0800
committerRosen Penev <rosenp@gmail.com>2020-02-16 17:10:18 -0800
commit6d3190fe5fa7501c5f09407ff9de1e622bb57ef2 (patch)
tree00d55ac9aba00f1943e4ddc809392f08e3f07222 /src/lib
parentdea0cc165da9da5a04fa254e7f4a6a52699785c8 (diff)
[clang-tidy] use = default
Found with modernize-use-equals-default Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upnp/ContentDirectoryService.cxx6
-rw-r--r--src/lib/upnp/Device.cxx6
2 files changed, 4 insertions, 8 deletions
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