Skip to content

Commit

Permalink
Fix [modernize-make-shared] in clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
mconcas committed Aug 28, 2024
1 parent f67766c commit bca3fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Detectors/ITSMFT/ITS/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ Detector::Detector(Bool_t active, TString name)
mHits(o2::utils::createSimVector<o2::itsmft::Hit>())
{
if (name == "ITS") {
mDescriptorIB.reset(new DescriptorInnerBarrelITS2(3));
mDescriptorIB = std::make_shared<DescriptorInnerBarrelITS2>(3);
} else if (name == "IT3") {
#ifdef ENABLE_UPGRADES
mDescriptorIB.reset(new DescriptorInnerBarrelITS3());
mDescriptorIB = std::make_shared<DescriptorInnerBarrelITS3>();
#endif
} else {
LOG(fatal) << "Detector name not supported (options ITS and ITS3)";
Expand Down

0 comments on commit bca3fe1

Please sign in to comment.