Skip to content
Snippets Groups Projects
Commit 128e9ee4 authored by Shaun Roe's avatar Shaun Roe Committed by Tadej Novak
Browse files

main-cppcheck-MuidTrackBuilder

main-cppcheck-MuidTrackBuilder
parent f4dc7001
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,8 @@ namespace Rec {
// append the spectrometer measurements
for (const Trk::MeasurementBase* const in_meas : spectrometerMeasurements) {
//if the unique_ptr has been moved, it will be nullptr after
//cppcheck-suppress accessMoved
if (frontParameters) {
trackStateOnSurfaces->push_back(
new Trk::TrackStateOnSurface(in_meas->uniqueClone(), std::move(frontParameters), nullptr, typeP));
......@@ -2387,6 +2389,7 @@ namespace Rec {
// trapezoid precedes rotatedTrapezoid
std::unique_ptr<const Trk::TrackStateOnSurface> TSOS(s->clone());
//cppcheck-suppress accessMoved
if (previousTSOS) {
if (trapezoid && deltaZ < 1. * Gaudi::Units::mm) {
spectrometerTSOS.emplace_back(std::move(TSOS));
......
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
//////////////////////////////////////////////////////////////////////////////
......@@ -190,8 +190,9 @@ namespace Rec {
innerParameters = std::move(exPars);
} else if (exPars && innerParameters && !middleParameters ) {
middleParameters = std::move(exPars);
} else {
lastPars = std::move(exPars);
}
lastPars = std::move(exPars);
innerParsSet = true;
}
......
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