From 5326feb111746de147bbd223af8aafa3b877c5ed Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Wed, 13 Sep 2017 10:28:50 -0500 Subject: [PATCH] Applied clang-tidy changes --- DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc b/DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc index 37783930674b5..6c0b6b441ed30 100644 --- a/DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc +++ b/DQM/SiPixelMonitorCluster/src/SiPixelClusterSource.cc @@ -40,7 +40,7 @@ #include "DataFormats/TrackerCommon/interface/TrackerTopology.h" // #include -#include +#include using namespace std; using namespace edm; @@ -86,7 +86,7 @@ SiPixelClusterSource::~SiPixelClusterSource() std::map::iterator struct_iter; for (struct_iter = thePixelStructure.begin() ; struct_iter != thePixelStructure.end() ; struct_iter++){ delete struct_iter->second; - struct_iter->second = 0; + struct_iter->second = nullptr; } } @@ -297,7 +297,7 @@ void SiPixelClusterSource::buildStructure(const edm::EventSetup& iSetup){ for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){ - if(dynamic_cast((*it))!=0){ + if(dynamic_cast((*it))!=nullptr){ DetId detId = (*it)->geographicalId(); const GeomDetUnit * geoUnit = pDD->idToDetUnit( detId );