Skip to content

Commit

Permalink
Make the static zeroSample const
Browse files Browse the repository at this point in the history
The static analyzer was complaining about the static zeroSample
being non-const. Since it is never modified we now make it const.
  • Loading branch information
Dr15Jones committed Jan 15, 2015
1 parent 239a9ae commit ba152e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastSimulation/CaloRecHitsProducer/src/HcalRecHitsMaker.cc
Expand Up @@ -404,7 +404,7 @@ void HcalRecHitsMaker::loadHcalRecHits(edm::Event &iEvent,const HcalTopology& to
{
hbheDigis.reserve(firedCells_.size());
}
static HcalQIESample zeroSample(0,0,0,0);
static const HcalQIESample zeroSample(0,0,0,0);
unsigned nhits=firedCells_.size();
// HB and HE

Expand Down

0 comments on commit ba152e9

Please sign in to comment.