Skip to content

Commit

Permalink
using nullptr instead of 0 to declare a null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
cippy committed Oct 20, 2017
1 parent f3e62bf commit 7515b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HLTrigger/special/src/HLTRechitsToDigis.cc
Expand Up @@ -174,7 +174,7 @@ HLTRechitsToDigis::produce(edm::Event& iEvent, edm::EventSetup const& setup) {
iEvent.getByToken(digisEBInToken_, digisEBHandle);
const EBDigiCollection* digisEB = digisEBHandle.product();

const EBSrFlagCollection* srFlagsEB = 0;
const EBSrFlagCollection* srFlagsEB = nullptr;
// protection against uninitialized token (empty InputTag) to allow for backward compatibility
if (not srFlagsEBInToken_.isUninitialized()) {
iEvent.getByToken(srFlagsEBInToken_, srFlagsEBHandle);
Expand Down Expand Up @@ -214,7 +214,7 @@ HLTRechitsToDigis::produce(edm::Event& iEvent, edm::EventSetup const& setup) {
iEvent.getByToken(digisEEInToken_, digisEEHandle);
const EEDigiCollection* digisEE = digisEEHandle.product();

const EESrFlagCollection* srFlagsEE = 0;
const EESrFlagCollection* srFlagsEE = nullptr;
// protection against uninitialized token (empty InputTag) to allow for backward compatibility
if (not srFlagsEEInToken_.isUninitialized()) {
iEvent.getByToken(srFlagsEEInToken_, srFlagsEEHandle);
Expand Down

0 comments on commit 7515b14

Please sign in to comment.