diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-04-15 00:07:21 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-12 18:59:52 +0000 |
| commit | e4afb390e9d056f4e7758eda7d432612fbcb167c (patch) | |
| tree | 631727cecded1c3eb5cf966ea95d30cfd5799f2b /src/device-manager.h | |
| parent | Migrated object-test and sp-gradient-test to gtest (diff) | |
| download | inkscape-e4afb390e9d056f4e7758eda7d432612fbcb167c.tar.gz inkscape-e4afb390e9d056f4e7758eda7d432612fbcb167c.zip | |
Run clang-tidy’s modernize-use-equals-delete pass.
Adds a delete specifier on constructors, destructors or assignment
methods that should never be called, ensuring they actually never will.
Diffstat (limited to 'src/device-manager.h')
| -rw-r--r-- | src/device-manager.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 }; |
