summaryrefslogtreecommitdiffstats
path: root/src/document.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/document.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/document.h')
-rw-r--r--src/document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document.h b/src/document.h
index 65f0cf628..1f3de042b 100644
--- a/src/document.h
+++ b/src/document.h
@@ -226,8 +226,8 @@ public:
void setModifiedSinceSave(bool const modified = true);
private:
- SPDocument(SPDocument const &); // no copy
- void operator=(SPDocument const &); // no assign
+ SPDocument(SPDocument const &) = delete; // no copy
+ void operator=(SPDocument const &) = delete; // no assign
Persp3D *current_persp3d; /**< Currently 'active' perspective (to which, e.g., newly created boxes are attached) */
Persp3DImpl *current_persp3d_impl;