From: Joel Holdsworth Date: Sun, 23 Nov 2014 17:35:46 +0000 (+0000) Subject: LogicSignal: Removed redundant calls to match_action X-Git-Tag: pulseview-0.3.0~428 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=388cdd24f49e31203a01e38bf5ae97e7272f6396;p=pulseview.git LogicSignal: Removed redundant calls to match_action --- diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index b3901363..e33c197a 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -339,9 +339,11 @@ void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form) Glib::VariantBase::cast_dynamic>>( 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_);