]> sigrok.org Git - pulseview.git/blobdiff - pv/view/logicsignal.cpp
LogicSignal: Replaced TRUE/FALSE with true/false
[pulseview.git] / pv / view / logicsignal.cpp
index 54d257819ade28b05be7ac0646f01e96390a579e..76890aa0d5880d1c17b862f4e72d0ed2ad766989 100644 (file)
@@ -133,10 +133,10 @@ void LogicSignal::paint_mid(QPainter &p, int left, int right)
 
        assert(_view);
        const int y = _v_offset - _view->v_offset();
-       
+
        const double scale = _view->scale();
        assert(scale > 0);
-       
+
        const double offset = _view->offset();
 
        if (!_channel->enabled())
@@ -301,7 +301,6 @@ void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
 {
        Glib::VariantContainerBase gvar;
        vector<int32_t> trig_types;
-       bool is_checked;
 
        Signal::populate_popup_form(parent, form);
 
@@ -320,8 +319,7 @@ void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
        for (auto type_id : trig_types) {
                auto type = TriggerMatchType::get(type_id);
                _trigger_bar->addAction(match_action(type));
-               is_checked = _trigger_match == type;
-               match_action(type)->setChecked(is_checked);
+               match_action(type)->setChecked(_trigger_match == type);
        }
        form->addRow(tr("Trigger"), _trigger_bar);
 
@@ -331,10 +329,10 @@ void LogicSignal::on_trigger()
 {
        QAction *action;
 
-       match_action(_trigger_match)->setChecked(FALSE);
+       match_action(_trigger_match)->setChecked(false);
 
        action = (QAction *)sender();
-       action->setChecked(TRUE);
+       action->setChecked(true);
        _trigger_match = action_match(action);
 
 }