This patch was generated using clang-tidy:
clang-tidy -checks="-*,modernize-use-bool-literals" -fix
// Slide right and zoom out at the beginnings of mip-map
// blocks until we encounter a change
- while (1) {
+ while (true) {
const int level_scale_power =
(level + 1) * MipMapScalePower;
const uint64_t offset =
// Zoom in, and slide right until we encounter a change,
// and repeat until we reach min_level
- while (1) {
+ while (true) {
assert(mip_map_[level].data);
const int level_scale_power =
pos_vdivs_(1),
neg_vdivs_(1),
resolution_(0),
- autoranging_(1)
+ autoranging_(true)
{
pv::data::Analog* analog_data =
dynamic_cast<pv::data::Analog*>(data().get());
o->restack_items();
// Re-assign background colors
- bool next_bgcolour_state = 0;
+ bool next_bgcolour_state = false;
for (auto &o : sorted_owners)
next_bgcolour_state = o->reassign_bgcolour_states(next_bgcolour_state);