diff --git a/Tracking/TrkEvent/VxVertex/VxVertex/RecVertex.h b/Tracking/TrkEvent/VxVertex/VxVertex/RecVertex.h index 83b35ad7c8ca82180567e181efdd19186d402d3f..ba4bf486f3021e60dce870405c93b00ab0e96890 100755 --- a/Tracking/TrkEvent/VxVertex/VxVertex/RecVertex.h +++ b/Tracking/TrkEvent/VxVertex/VxVertex/RecVertex.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ @@ -69,8 +69,15 @@ namespace Trk /** * Copy constructor and assignement operator */ - RecVertex(const RecVertex& ); - RecVertex &operator= (const RecVertex &); + RecVertex(const RecVertex& ) = default; + RecVertex &operator= (const RecVertex &) = default; + + /** + * Move constructor and assignment operator + */ + RecVertex ( RecVertex && ) = default; + RecVertex &operator = ( RecVertex && ) = default; + /** * Output Method for MsgStream, to be overloaded by child classes diff --git a/Tracking/TrkEvent/VxVertex/src/RecVertex.cxx b/Tracking/TrkEvent/VxVertex/src/RecVertex.cxx index e02e46e9ca42091a9f767b86573689c2d92f03e8..c45fc5d3a5923e77134c33332acb7838d20491bc 100755 --- a/Tracking/TrkEvent/VxVertex/src/RecVertex.cxx +++ b/Tracking/TrkEvent/VxVertex/src/RecVertex.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ /*************************************************************************** @@ -43,23 +43,6 @@ namespace Trk { m_positionCovariance.setZero(); } - RecVertex::RecVertex(const RecVertex& rhs) : Vertex(rhs), - m_positionCovariance(rhs.m_positionCovariance), - m_fitQuality(rhs.m_fitQuality) - {} - - RecVertex &RecVertex::operator= (const RecVertex& rhs) - { - if (this!=&rhs) - { -// you need to call the base class assignment operator - Vertex::operator=(rhs); - m_positionCovariance = rhs.m_positionCovariance; - m_fitQuality = rhs.m_fitQuality; - } - return *this; - } - MsgStream& RecVertex::dump(MsgStream& sl) const { sl << "Trk::RecVertex: " << std::endl; Vertex::dump(sl);