This patch was generated using clang-tidy:
clang-tidy -checks="-*,modernize-use-bool-literals" -fix
if (row_iter == d->rows_.end()) {
qDebug() << "Unexpected annotation: decoder = " << decc <<
", format = " << a.format();
- assert(0);
+ assert(false);
return;
}
range_min = 0, range_max = UINT64_MAX;
} else {
// Unexpected value type.
- assert(0);
+ assert(false);
}
// @todo Sigrok supports 64-bit quantities, but Qt does not have a
else
{
// Unexpected value type.
- assert(0);
+ assert(false);
}
assert(new_value);
}
default:
- assert(0);
+ assert(false);
break;
}
}
// Confirm that SR_DF_END was received
if (cur_logic_segment_) {
qDebug("SR_DF_END was not received.");
- assert(0);
+ assert(false);
}
// Optimize memory usage
ai = bi = 0;
- while (1) {
+ while (true) {
ca = a[ai];
cb = b[bi];
action = trigger_change_;
break;
default:
- assert(0);
+ assert(false);
}
}
default:
// Unexpected value type
- assert(0);
+ assert(false);
return 0;
}
}