From 749f0fa750094c15bb2f4cbf46058c410d51363f Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 30 Mar 2024 09:44:20 -0400 Subject: [PATCH] Remove explicit operator= definition from Mx3DPointFloat (#760) --- LEGO1/mxgeometry/mxgeometry3d.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/LEGO1/mxgeometry/mxgeometry3d.h b/LEGO1/mxgeometry/mxgeometry3d.h index 4659810e..c5dfeeda 100644 --- a/LEGO1/mxgeometry/mxgeometry3d.h +++ b/LEGO1/mxgeometry/mxgeometry3d.h @@ -35,17 +35,8 @@ class Mx3DPointFloat : public Vector3 { inline float& operator[](size_t idx) { return m_data[idx]; } inline const float& operator[](size_t idx) const { return m_data[idx]; } - // FUNCTION: LEGO1 0x10010c00 - inline Mx3DPointFloat& operator=(const Mx3DPointFloat& p_other) - { - ((Vector3&) *this).operator=(p_other); - - for (size_t i = 0; i < sizeof(m_elements) / sizeof(float); i++) { - m_elements[i] = p_other.m_elements[i]; - } - - return *this; - } + // SYNTHETIC: LEGO1 0x10010c00 + // Mx3DPointFloat::operator= inline void EqualsCross(Mx3DPointFloat& p_a, Mx3DPointFloat& p_b) { EqualsCrossImpl(p_a.m_data, p_b.m_data); }