Skip to content

Commit

Permalink
changed (.size() == 0) to (.empty()) to check vector size
Browse files Browse the repository at this point in the history
  • Loading branch information
toropin committed Mar 26, 2019
1 parent 7d049a3 commit 1dd98d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoLocalCalo/HcalRecAlgos/src/HFStripFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void HFStripFilter::runFilter(HFRecHitCollection& rec) const
if ((*it).id().depth() == 1) {
// check if hit = (*it) is already in d1strip
bool pass = false;
if (d1strip.size() == 0) {
if (d1strip.empty()) {
if (abs((*it).id().iphi() - stripIetaMax) <= gap_) {
d1strip.push_back((*it));
pass = true;
Expand All @@ -153,7 +153,7 @@ void HFStripFilter::runFilter(HFRecHitCollection& rec) const
else if ((*it).id().depth() == 2) {
// check if hit = (*it) is already in d2strip
bool pass= false;
if (d2strip.size() == 0) {
if (d2strip.empty()) {
if (abs((*it).id().ieta() - stripIetaMax) <= gap_) {
d2strip.push_back((*it));
pass = true;
Expand Down

0 comments on commit 1dd98d3

Please sign in to comment.