summaryrefslogtreecommitdiffstats
path: root/src/vanishing-point.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-15 17:02:56 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:01 +0000
commit004e50d84773242a000f5cadb89466bbc793e1a8 (patch)
tree019c32e65caa08fe7cf90b521787531a7b1d2225 /src/vanishing-point.h
parentRun clang-tidy’s modernize-use-nullptr pass. (diff)
downloadinkscape-004e50d84773242a000f5cadb89466bbc793e1a8.tar.gz
inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.zip
Run clang-tidy’s modernize-use-equals-default pass.
This replaces empty constructors and destructors with the default keyword.
Diffstat (limited to 'src/vanishing-point.h')
-rw-r--r--src/vanishing-point.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vanishing-point.h b/src/vanishing-point.h
index afefa613e..80d3b435c 100644
--- a/src/vanishing-point.h
+++ b/src/vanishing-point.h
@@ -45,12 +45,7 @@ public:
VanishingPoint(Persp3D *persp, Proj::Axis axis) : my_counter(VanishingPoint::global_counter++), _persp(persp), _axis(axis) {}
VanishingPoint(const VanishingPoint &other) : my_counter(VanishingPoint::global_counter++), _persp(other._persp), _axis(other._axis) {}
- inline VanishingPoint &operator=(VanishingPoint const &rhs) {
- _persp = rhs._persp;
- _axis = rhs._axis;
- my_counter = rhs.my_counter;
- return *this;
- }
+ inline VanishingPoint &operator=(VanishingPoint const &rhs) = default;
inline bool operator==(VanishingPoint const &rhs) const {
/* vanishing points coincide if they belong to the same perspective */
return (_persp == rhs._persp && _axis == rhs._axis);