diff --git a/Tracking/TrkEvent/TrkParticleBase/TrkParticleBase/LinkToTrackParticleBase.h b/Tracking/TrkEvent/TrkParticleBase/TrkParticleBase/LinkToTrackParticleBase.h index fc8a6e730e17f8933baec035fee66d6d9497edcb..402d7b096302a78c088b4792803a158767a3556e 100644 --- a/Tracking/TrkEvent/TrkParticleBase/TrkParticleBase/LinkToTrackParticleBase.h +++ b/Tracking/TrkEvent/TrkParticleBase/TrkParticleBase/LinkToTrackParticleBase.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 */ #ifndef TRKPARTICLEBASE_LINKTOTRACKPARTICLEBASE_H @@ -24,7 +24,7 @@ namespace Trk LinkToTrackParticleBase( ElementLink<TrackParticleBaseCollection>& link); /** default destructor */ - virtual ~LinkToTrackParticleBase(); + virtual ~LinkToTrackParticleBase() = default; /** return the track parameters of the track (to which the EL< TrackParticleBaseCollection > points) */ const TrackParameters * parameters() const; @@ -35,9 +35,6 @@ namespace Trk /** method to clone the LinkToTrack object */ LinkToTrackParticleBase * clone() const ; - /** assignment operator */ - LinkToTrackParticleBase& operator= ( const LinkToTrackParticleBase& rhs ); - };//end of class definitions }//end of namespace definitions diff --git a/Tracking/TrkEvent/TrkParticleBase/src/LinkToTrackParticleBase.cxx b/Tracking/TrkEvent/TrkParticleBase/src/LinkToTrackParticleBase.cxx index ebd91f4426a459653ced5a2328f1daaba3971fae..d99beb0edff52366614a25c0575ea4813d3db03f 100644 --- a/Tracking/TrkEvent/TrkParticleBase/src/LinkToTrackParticleBase.cxx +++ b/Tracking/TrkEvent/TrkParticleBase/src/LinkToTrackParticleBase.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 */ @@ -16,9 +16,6 @@ namespace Trk : ElementLink<TrackParticleBaseCollection> ( link ) {} - LinkToTrackParticleBase::~LinkToTrackParticleBase() - {} - const TrackParameters * LinkToTrackParticleBase::parameters() const { if ( isValid() ) @@ -35,13 +32,4 @@ namespace Trk return new LinkToTrackParticleBase ( *this ); } - Trk::LinkToTrackParticleBase& Trk::LinkToTrackParticleBase::operator= ( const Trk::LinkToTrackParticleBase& rhs ) - { - if ( this!=&rhs ) - { - ElementLink<TrackParticleBaseCollection>::operator= ( rhs ); - } - return *this; - } - }//end of namespace definitions