Fix some random clang-tidy warnings.
[pulseview.git] / pv / data / decode / decoder.cpp
index 2a9b980b14ef58039641f22df519cb291b6acdb7..511f7bffb67abcc4d65b9cfa1888a6cc55a5e2ba 100644 (file)
@@ -28,9 +28,7 @@
 #include <pv/data/decodesignal.hpp>
 
 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;
 }