]> sigrok.org Git - pulseview.git/commitdiff
LogicSignal: Removed redundant calls to match_action
authorJoel Holdsworth <redacted>
Sun, 23 Nov 2014 17:35:46 +0000 (17:35 +0000)
committerJoel Holdsworth <redacted>
Sun, 23 Nov 2014 17:35:46 +0000 (17:35 +0000)
pv/view/logicsignal.cpp

index b3901363548cff82686412fe070bad4f60c2d254..e33c197a7be7ce31696c0465b82dd9cd4794f5c3 100644 (file)
@@ -339,9 +339,11 @@ void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
                Glib::VariantBase::cast_dynamic<Glib::Variant<vector<int32_t>>>(
                        gvar).get();
        for (auto type_id : trig_types) {
-               auto type = TriggerMatchType::get(type_id);
-               trigger_bar_->addAction(match_action(type));
-               match_action(type)->setChecked(trigger_match_ == type);
+               const TriggerMatchType *const type =
+                       TriggerMatchType::get(type_id);
+               QAction *const action = match_action(type);
+               trigger_bar_->addAction(action);
+               action->setChecked(trigger_match_ == type);
        }
        form->addRow(tr("Trigger"), trigger_bar_);