From 388cdd24f49e31203a01e38bf5ae97e7272f6396 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 23 Nov 2014 17:35:46 +0000 Subject: [PATCH] LogicSignal: Removed redundant calls to match_action --- pv/view/logicsignal.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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_); -- 2.30.2