]> sigrok.org Git - pulseview.git/commitdiff
Fix some random clang-tidy warnings.
authorUwe Hermann <redacted>
Tue, 1 Aug 2017 20:19:56 +0000 (22:19 +0200)
committerUwe Hermann <redacted>
Wed, 2 Aug 2017 08:52:52 +0000 (10:52 +0200)
android/loghandler.cpp
pv/data/decode/annotation.hpp
pv/data/decode/decoder.cpp
pv/views/trace/signal.cpp

index 2c6674cda51cdcd6a398198525c301a24acf3462..137d2dff8f7a0e09ae7c5629a22c9bef7052441b 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <android/log.h>
 
 
 #include <android/log.h>
 
-#include <stdint.h>
+#include <cstdint>
 #include <libsigrok/libsigrok.h>
 
 #include "android/loghandler.hpp"
 #include <libsigrok/libsigrok.h>
 
 #include "android/loghandler.hpp"
index 2be8e88d989e4cddacaa18d9b86156ca875c4e95..42a291a2134a5d7eb439b6a2c7dda7ffcac1238d 100644 (file)
@@ -20,7 +20,8 @@
 #ifndef PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP
 #define PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP
 
 #ifndef PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP
 #define PULSEVIEW_PV_VIEW_DECODE_ANNOTATION_HPP
 
-#include <stdint.h>
+#include <cstdint>
+#include <vector>
 
 #include <QString>
 
 
 #include <QString>
 
index cd3e97d649ec52f0646fa269402b3f5e3d3668c5..511f7bffb67abcc4d65b9cfa1888a6cc55a5e2ba 100644 (file)
@@ -113,7 +113,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const
                return nullptr;
 
        // Setup the channels
                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());
                sizeof(uint8_t), channels_.size());
 
        g_array_set_size(init_pin_states, channels_.size());
@@ -133,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);
        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;
 }
 
        return decoder_inst;
 }
index 3d6ee151b6af093fd4443cfba335cebe94dbf3e5..1e277f0d57196beb1ada1be3c4b016e4d44a5d95 100644 (file)
@@ -36,7 +36,6 @@
 #include "view.hpp"
 
 using std::shared_ptr;
 #include "view.hpp"
 
 using std::shared_ptr;
-using std::make_shared;
 
 namespace pv {
 namespace views {
 
 namespace pv {
 namespace views {