summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/dialog.h
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/ui/dialog/dialog.h
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/ui/dialog/dialog.h')
-rw-r--r--src/ui/dialog/dialog.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/dialog.h b/src/ui/dialog/dialog.h
index 9c7efd47b..2bde4459b 100644
--- a/src/ui/dialog/dialog.h
+++ b/src/ui/dialog/dialog.h
@@ -147,10 +147,10 @@ protected:
private:
Behavior::Behavior* _behavior;
- Dialog(); // no constructor without params
+ Dialog() = delete; // no constructor without params
- Dialog(Dialog const &d); // no copy
- Dialog& operator=(Dialog const &d); // no assign
+ Dialog(Dialog const &d) = delete; // no copy
+ Dialog& operator=(Dialog const &d) = delete; // no assign
friend class Behavior::FloatingBehavior;
friend class Behavior::DockBehavior;