X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.cpp;h=1f158c230b7f55c53630c0eb2e78f5f09ded6ed4;hp=11b2b70bebc65e7503abc2dca66bf78bac54342a;hb=326cf6feb8598aa03a35fd6f678e4f536f168149;hpb=1f1d55ce48ae1dac0f077c60827a41b368b5207a;ds=sidebyside diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index 11b2b70b..1f158c23 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -145,14 +145,14 @@ std::vector DecoderStack::get_visible_rows() const // Add a row for the decoder if it doesn't have a row list if (!decc->annotation_rows) - rows.push_back(Row(decc)); + rows.emplace_back(decc); // Add the decoder rows for (const GSList *l = decc->annotation_rows; l; l = l->next) { const srd_decoder_annotation_row *const ann_row = (srd_decoder_annotation_row *)l->data; assert(ann_row); - rows.push_back(Row(decc, ann_row)); + rows.emplace_back(decc, ann_row); } }