From 0caaf49d37263ea9422536a6aeb978bd1336bd03 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 20 May 2020 15:59:46 +0200 Subject: [PATCH] unuseful copy constructor box - deleted trackball assignment operator --- vcg/space/box3.h | 2 +- wrap/gui/trackball.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/space/box3.h b/vcg/space/box3.h index 3bd1928e..81717931 100644 --- a/vcg/space/box3.h +++ b/vcg/space/box3.h @@ -52,7 +52,7 @@ public: /// The bounding box constructor inline Box3() { this->SetNull(); } /// Copy constructor - inline Box3( const Box3 & b ) { min=b.min; max=b.max; } + //inline Box3( const Box3 & b ) { min=b.min; max=b.max; } /// Min Max constructor inline Box3( const Point3 & mi, const Point3 & ma ) { min = mi; max = ma; } /// Point Radius Constructor diff --git a/wrap/gui/trackball.h b/wrap/gui/trackball.h index fc70a36a..9d3a87f2 100644 --- a/wrap/gui/trackball.h +++ b/wrap/gui/trackball.h @@ -202,7 +202,7 @@ public: private: // Trackball must not be copied. Use Append (see vcg/complex/trimesh/append.h) - Trackball operator =(const Trackball & /*m*/){ assert(0); return *this; } + Trackball operator =(const Trackball & /*m*/) = delete; public: /*! @brief Reset the trackball.