Skip to content
Snippets Groups Projects
Commit cd233aed authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

CSC_Digitization: Fix cppcheck warning.

Redundant null pointer test.
parent 81ef301a
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
*/ */
#include "MuonReadoutGeometry/MuonDetectorManager.h" #include "MuonReadoutGeometry/MuonDetectorManager.h"
...@@ -220,11 +220,9 @@ StatusCode CscDigitizationTool::CoreDigitization(Collections_t& collections,CscS ...@@ -220,11 +220,9 @@ StatusCode CscDigitizationTool::CoreDigitization(Collections_t& collections,CscS
} }
} }
// reset the pointer if it is not null // reset the pointer.
if (m_thpcCSC) { delete m_thpcCSC;
delete m_thpcCSC; m_thpcCSC=nullptr;
m_thpcCSC=nullptr;
}
// now loop over the digit map // now loop over the digit map
// build the digits // build the digits
......
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