Skip to content
Snippets Groups Projects
Commit 6602a7ca authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'TrkVertexSeedFinderUtils_ATLAS_CHECK_THREAD_SAFETY' into 'master'

TrkVertexSeedFinderUtils remove un-needed const_cast

See merge request atlas/athena!34471
parents 65297645 85909ff1
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ void GaussianDensityTestAlg::selectTracks(const xAOD::TrackParticleContainer* tr
if (selectionPassed)
{
ElementLink<xAOD::TrackParticleContainer> link;
link.setElement(const_cast<xAOD::TrackParticle*>(*itr));
link.setElement(*itr);
Trk::LinkToXAODTrackParticle * linkTT = new Trk::LinkToXAODTrackParticle(link);
linkTT->setStorableObject(*trackParticles);
trackVector.push_back(linkTT);
......
......@@ -495,7 +495,7 @@ void ImagingSeedTuningAlg::selectTracks(const xAOD::TrackParticleContainer* trac
if (selectionPassed)
{
ElementLink<xAOD::TrackParticleContainer> link;
link.setElement(const_cast<xAOD::TrackParticle*>(*itr));
link.setElement(*itr);
Trk::LinkToXAODTrackParticle * linkTT = new Trk::LinkToXAODTrackParticle(link);
linkTT->setStorableObject(*trackParticles);
trackVector.push_back(linkTT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment