From: Soeren Apel Date: Sun, 3 Aug 2014 12:12:13 +0000 (+0200) Subject: Fix comment and increase readability in probes.cpp X-Git-Tag: pulseview-0.3.0~573 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=733eee0e51348243edb5547a33455f96097b7273;p=pulseview.git Fix comment and increase readability in probes.cpp --- diff --git a/pv/popups/probes.cpp b/pv/popups/probes.cpp index fc069b8f..a20dfcca 100644 --- a/pv/popups/probes.cpp +++ b/pv/popups/probes.cpp @@ -63,6 +63,7 @@ Probes::Probes(SigSession &session, QWidget *parent) : // Collect a set of signals map > signal_map; const vector< shared_ptr > sigs = _session.get_signals(); + for (const shared_ptr &sig : sigs) signal_map[sig->probe()] = sig; @@ -73,7 +74,7 @@ Probes::Probes(SigSession &session, QWidget *parent) : (const sr_channel_group*)g->data; assert(group); - // Make a set of signals, and removed this signals from the + // Make a set of signals and remove these signals from the // signal map. vector< shared_ptr > group_sigs; for (const GSList *p = group->channels; p; p = p->next)