Skip to content

Commit 211aa2b

Browse files
committed
readability-simplify-boolean-expr
1 parent 7b56b13 commit 211aa2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGDQ/Core/HistogramManager.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ void HistogramManager::FillHistClass(const char* className, Float_t* values)
784784
for (auto varIter = varList.begin(); varIter != varList.end(); varIter++) {
785785
h = next(); // get the histogram
786786
// decode information from the vector of indices
787-
isProfile = ((*varIter)[0] == 1 ? true : false);
788-
isTHn = ((*varIter)[1] > 0 ? true : false);
787+
isProfile = ((*varIter)[0] == 1);
788+
isTHn = ((*varIter)[1] > 0);
789789
if (isTHn) {
790790
dimension = (*varIter)[1];
791791
} else {
@@ -803,7 +803,7 @@ void HistogramManager::FillHistClass(const char* className, Float_t* values)
803803
varY = (*varIter)[4];
804804
varZ = (*varIter)[5];
805805
varT = (*varIter)[6];
806-
isFillLabelx = ((*varIter)[7] == 1 ? true : false);
806+
isFillLabelx = ((*varIter)[7] == 1);
807807
}
808808

809809
if (!isTHn) {

0 commit comments

Comments
 (0)