diff --git a/Tracking/Acts/ActsEvent/test/MultiTrajectoryBasic_test.cxx b/Tracking/Acts/ActsEvent/test/MultiTrajectoryBasic_test.cxx index 16dc8177b83878b5f4b7687d25ad53b203af9e72..5a5a85b41cf9e848ff7ceed03e7b132743e6fcf3 100644 --- a/Tracking/Acts/ActsEvent/test/MultiTrajectoryBasic_test.cxx +++ b/Tracking/Acts/ActsEvent/test/MultiTrajectoryBasic_test.cxx @@ -107,7 +107,6 @@ struct EmptyTrackStatesAux { ActsTrk::MutableMultiTrajectory m; }; -// cppcheck-suppress syntaxError BOOST_FIXTURE_TEST_CASE(AllMtjStaticxAODVariablesAreKnown, EmptyTrackStatesAux) { for (auto id : m.trackStatesAux()->getStore()->getAuxIDs()) { const std::string name = SG::AuxTypeRegistry::instance().getName(id); @@ -171,9 +170,9 @@ std::default_random_engine rng(31415); BOOST_AUTO_TEST_SUITE(EventDataMultiTrajectory) struct EmptyMTJ { // setup empty MTJ - EmptyMTJ() { - mtj = std::make_unique<ActsTrk::MutableMultiTrajectory>(); - } + EmptyMTJ() : + mtj(std::make_unique<ActsTrk::MutableMultiTrajectory>()) + {} std::unique_ptr<ActsTrk::MutableMultiTrajectory> mtj; ActsTrk::MultiTrajectory* ro_mtj() { @@ -196,7 +195,6 @@ BOOST_AUTO_TEST_CASE(OwningMTJ) { ActsTrk::MutableMultiTrajectory mtj; } -// cppcheck-suppress syntaxError BOOST_FIXTURE_TEST_CASE(Fill, EmptyMTJ) { BOOST_CHECK(mtj->has_backends()); constexpr auto kMask = Acts::TrackStatePropMask::Predicted;