From cdac3e9a341b07ae49d7d2b53e821e003370139c Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 28 Dec 2021 17:47:20 +0100 Subject: [PATCH] Base: fix issue found by lgtm: Inconsistent definition of copy constructor and assignment ('Rule of Two') --- src/Base/GeometryPyCXX.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Base/GeometryPyCXX.h b/src/Base/GeometryPyCXX.h index 24faa31fe4..1f1eaadaea 100644 --- a/src/Base/GeometryPyCXX.h +++ b/src/Base/GeometryPyCXX.h @@ -149,6 +149,10 @@ public: { return (*this = *rhs); } + Vector& operator= (const Vector& rhs) + { + return (*this = *rhs); + } Vector& operator= (PyObject* rhsp); Vector& operator= (const Base::Vector3d&);