summaryrefslogtreecommitdiffstats
path: root/src/device-manager.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-04-15 00:07:21 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-12 18:59:52 +0000
commite4afb390e9d056f4e7758eda7d432612fbcb167c (patch)
tree631727cecded1c3eb5cf966ea95d30cfd5799f2b /src/device-manager.cpp
parentMigrated object-test and sp-gradient-test to gtest (diff)
downloadinkscape-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.cpp')
-rw-r--r--src/device-manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device-manager.cpp b/src/device-manager.cpp
index 6c8d4514c..185d417fb 100644
--- a/src/device-manager.cpp
+++ b/src/device-manager.cpp
@@ -188,8 +188,8 @@ public:
virtual Glib::RefPtr<Gdk::Device> getDevice() {return device;}
private:
- InputDeviceImpl(InputDeviceImpl const &); // no copy
- void operator=(InputDeviceImpl const &); // no assign
+ InputDeviceImpl(InputDeviceImpl const &) = delete; // no copy
+ void operator=(InputDeviceImpl const &) = delete; // no assign
static Glib::ustring createId(Glib::ustring const &id, Gdk::InputSource source, std::set<Glib::ustring> &knownIDs);