Skip to content

Commit

Permalink
TrackDAO: Avoid bitwise or to calculate boolean expression
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jan 18, 2022
1 parent db31296 commit e6eb30c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/dao/trackdao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1506,9 +1506,9 @@ TrackPointer TrackDAO::getTrackById(TrackId trackId) const {
}
for (int i = 0; i < recordCount; ++i) {
TrackPopulatorFn populator = columns[i].populator;
if (populator) {
if (populator && (*populator)(queryRecord, i, pTrack.get())) {
// If any populator says the track should be dirty then we dirty it.
shouldDirty |= (*populator)(queryRecord, i, pTrack.get());
shouldDirty = true;
}
}
}
Expand Down

0 comments on commit e6eb30c

Please sign in to comment.