X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.cpp;h=1513b20be5cb70156db3dfe33c43c8c0e4fd594b;hp=374dd4d360c9bf8bca84f544eaf04892395c9888;hb=27c0521002ea986b72d9675b99803665516db14c;hpb=744aa24fc5a7084461e4e70595b96f1c3eac65e4 diff --git a/pv/data/decode/decoder.cpp b/pv/data/decode/decoder.cpp index 374dd4d..1513b20 100644 --- a/pv/data/decode/decoder.cpp +++ b/pv/data/decode/decoder.cpp @@ -44,7 +44,7 @@ Decoder::Decoder(const srd_decoder *const dec) : Decoder::~Decoder() { - for (auto & option : options_) + for (auto& option : options_) g_variant_unref(option.second); } @@ -102,7 +102,7 @@ bool Decoder::have_required_channels() const set< shared_ptr > Decoder::get_data() { set< shared_ptr > data; - for (const auto & channel : channels_) { + for (const auto& channel : channels_) { shared_ptr signal(channel.second); assert(signal); data.insert(signal->logic_data()); @@ -116,7 +116,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref); - for (const auto & option : options_) { + for (const auto& option : options_) { GVariant *const value = option.second; g_variant_ref(value); g_hash_table_replace(opt_hash, (void*)g_strdup( @@ -134,7 +134,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const GHashTable *const channels = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref); - for (const auto & channel : channels_) { + for (const auto& channel : channels_) { shared_ptr signal(channel.second); GVariant *const gvar = g_variant_new_int32( signal->channel()->index());