From 004e50d84773242a000f5cadb89466bbc793e1a8 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 19:02:56 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-equals-defau?= =?UTF-8?q?lt=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces empty constructors and destructors with the default keyword. --- src/device-manager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/device-manager.cpp') diff --git a/src/device-manager.cpp b/src/device-manager.cpp index cbc67238e..da85860c2 100644 --- a/src/device-manager.cpp +++ b/src/device-manager.cpp @@ -163,12 +163,12 @@ InputDevice::InputDevice() : Glib::Object() {} -InputDevice::~InputDevice() {} +InputDevice::~InputDevice() = default; class InputDeviceImpl : public InputDevice { public: InputDeviceImpl(Glib::RefPtr device, std::set &knownIDs); - ~InputDeviceImpl() override {} + ~InputDeviceImpl() override = default; Glib::ustring getId() const override {return id;} Glib::ustring getName() const override {return name;} @@ -611,8 +611,7 @@ DeviceManager::DeviceManager() { } -DeviceManager::~DeviceManager() { -} +DeviceManager::~DeviceManager() = default; DeviceManager& DeviceManager::getManager() { if ( !theInstance ) { -- cgit v1.2.3