if (fill_high_areas) {
// Any edge terminates a high area
- const int width = x - rising_edge_x;
- if (rising_edge_seen && (width > 0)) {
- high_rects.emplace_back(rising_edge_x, high_offset,
- width, signal_height_);
+ if (rising_edge_seen) {
+ const int width = x - rising_edge_x;
+ if (width > 0)
+ high_rects.emplace_back(rising_edge_x, high_offset,
+ width, signal_height_);
rising_edge_seen = false;
}
// Only allow triggers to be changed when we're stopped
if (session_.get_capture_state() != Session::Stopped)
- for (QAction* action : trigger_bar_->findChildren<QAction*>())
+ for (QAction* action : trigger_bar_->findChildren<QAction*>()) // clazy:exclude=range-loop
action->setEnabled(false);
form->addRow(tr("Trigger"), trigger_bar_);