[Bf-blender-cvs] [6c1cf395f2d] master: Cleanup: remove unnecessary copy constructor

Campbell Barton noreply at git.blender.org
Wed May 27 03:51:57 CEST 2020


Commit: 6c1cf395f2d1080d717392e14f578c8ba5e8ddbe
Author: Campbell Barton
Date:   Wed May 27 11:50:06 2020 +1000
Branches: master
https://developer.blender.org/rB6c1cf395f2d1080d717392e14f578c8ba5e8ddbe

Cleanup: remove unnecessary copy constructor

Caused deprecated-copy warnings as it wasn't used.

===================================================================

M	intern/ghost/GHOST_Rect.h

===================================================================

diff --git a/intern/ghost/GHOST_Rect.h b/intern/ghost/GHOST_Rect.h
index 88053f83fb9..13632a1c03b 100644
--- a/intern/ghost/GHOST_Rect.h
+++ b/intern/ghost/GHOST_Rect.h
@@ -48,14 +48,6 @@ class GHOST_Rect {
   {
   }
 
-  /**
-   * Copy constructor.
-   * \param   r   rectangle to copy
-   */
-  GHOST_Rect(const GHOST_Rect &r) : m_l(r.m_l), m_t(r.m_t), m_r(r.m_r), m_b(r.m_b)
-  {
-  }
-
   /**
    * Destructor.
    */



More information about the Bf-blender-cvs mailing list