Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PF][clang-tidy] fix readability-container-size-empty warnings #34658

Merged
merged 1 commit into from Jul 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion DataFormats/ParticleFlowCandidate/src/CountBits.h
Expand Up @@ -4658,7 +4658,7 @@ enum PFRefMasks {
size_t index, aIndex; \
typedef edm::Ref<std::vector<_class_> > RefType; \
if (getRefInfo(_mask_, _bit_, prodID, index, aIndex)) { \
if (refsCollectionCache_.size() == 0 || refsCollectionCache_[aIndex] == 0) \
if (refsCollectionCache_.empty() || refsCollectionCache_[aIndex] == 0) \
return RefType(prodID, index, getter_); \
else { \
_class_ const* t = reinterpret_cast<_class_ const*>(refsCollectionCache_[aIndex]); \
Expand Down