X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodetrace.cpp;h=36e7a10458a0c9467740f5edf770177199268e2f;hp=8674f40ca405ca2c5833cc708e278015839b2811;hb=f32905530347e1020d5ce7959123cf797c9a4829;hpb=ce11b2ea851633dc937881cdbd358541685b43be diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 8674f40c..36e7a104 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -658,7 +658,7 @@ void DecodeTrace::create_decoder_form(int index, group->add_layout(decoder_form); // Add the mandatory channels - for(l = decoder->channels; l; l = l->next) { + for (l = decoder->channels; l; l = l->next) { const struct srd_channel *const pdch = (struct srd_channel *)l->data; QComboBox *const combo = create_channel_selector(parent, dec, pdch); @@ -673,7 +673,7 @@ void DecodeTrace::create_decoder_form(int index, } // Add the optional channels - for(l = decoder->opt_channels; l; l = l->next) { + for (l = decoder->opt_channels; l; l = l->next) { const struct srd_channel *const pdch = (struct srd_channel *)l->data; QComboBox *const combo = create_channel_selector(parent, dec, pdch); @@ -748,7 +748,7 @@ void DecodeTrace::commit_decoder_channels(shared_ptr &dec for (const ChannelSelector &s : channel_selectors_) { - if(s.decoder_ != dec) + if (s.decoder_ != dec) break; const LogicSignal *const selection = @@ -756,7 +756,7 @@ void DecodeTrace::commit_decoder_channels(shared_ptr &dec s.combo_->currentIndex()).value(); for (shared_ptr sig : sigs) - if(sig.get() == selection) { + if (sig.get() == selection) { channel_map[s.pdch_] = dynamic_pointer_cast(sig); break; @@ -825,7 +825,7 @@ void DecodeTrace::on_show_hide_decoder(int index) // Find the decoder in the stack auto iter = stack.cbegin(); - for(int i = 0; i < index; i++, iter++) + for (int i = 0; i < index; i++, iter++) assert(iter != stack.end()); shared_ptr dec = *iter;