X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.cpp;h=511f7bffb67abcc4d65b9cfa1888a6cc55a5e2ba;hp=2a9b980b14ef58039641f22df519cb291b6acdb7;hb=f529583485b54ae73401daf780f8a61d1716d5f1;hpb=27a3f09baf61c7f9b8c07630d34df75ddfdd476b diff --git a/pv/data/decode/decoder.cpp b/pv/data/decode/decoder.cpp index 2a9b980..511f7bf 100644 --- a/pv/data/decode/decoder.cpp +++ b/pv/data/decode/decoder.cpp @@ -28,9 +28,7 @@ #include using pv::data::DecodeChannel; -using std::set; using std::map; -using std::shared_ptr; using std::string; namespace pv { @@ -115,7 +113,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const return nullptr; // Setup the channels - GArray *const init_pin_states = g_array_sized_new(FALSE, TRUE, + GArray *const init_pin_states = g_array_sized_new(false, true, sizeof(uint8_t), channels_.size()); g_array_set_size(init_pin_states, channels_.size()); @@ -135,7 +133,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const srd_inst_channel_set_all(decoder_inst, channels); srd_inst_initial_pins_set_all(decoder_inst, init_pin_states); - g_array_free(init_pin_states, TRUE); + g_array_free(init_pin_states, true); return decoder_inst; }