From e4afb390e9d056f4e7758eda7d432612fbcb167c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 15 Apr 2018 02:07:21 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-equals-delet?= =?UTF-8?q?e=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a delete specifier on constructors, destructors or assignment methods that should never be called, ensuring they actually never will. --- src/device-manager.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/device-manager.h') diff --git a/src/device-manager.h b/src/device-manager.h index d608a5717..8583ae5d0 100644 --- a/src/device-manager.h +++ b/src/device-manager.h @@ -34,8 +34,8 @@ protected: virtual ~InputDevice(); private: - InputDevice(InputDevice const &); // no copy - void operator=(InputDevice const &); // no assign + InputDevice(InputDevice const &) = delete; // no copy + void operator=(InputDevice const &) = delete; // no assign }; class DeviceManager : public Glib::Object { @@ -65,8 +65,8 @@ protected: virtual ~DeviceManager(); private: - DeviceManager(DeviceManager const &); // no copy - void operator=(DeviceManager const &); // no assign + DeviceManager(DeviceManager const &) = delete; // no copy + void operator=(DeviceManager const &) = delete; // no assign }; -- cgit v1.2.3