diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-17 20:32:20 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-22 15:05:58 +0200 |
commit | b08d13aed2a7e7ffdee09833bb24db8ce92dce66 (patch) | |
tree | 4846eebe25b48c615cbe07d2a9f4e79d5e8ff72d /gr-qtgui/lib/time_sink_c_impl.cc | |
parent | c6cb3bbc35153a9635d69eddab0d252f7441b854 (diff) |
clang-tidy in gnuradio-runtime: use empty() instead of size()!=0
Diffstat (limited to 'gr-qtgui/lib/time_sink_c_impl.cc')
-rw-r--r-- | gr-qtgui/lib/time_sink_c_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc index 95ac4c2f69..a05672f831 100644 --- a/gr-qtgui/lib/time_sink_c_impl.cc +++ b/gr-qtgui/lib/time_sink_c_impl.cc @@ -151,7 +151,7 @@ void time_sink_c_impl::initialize() d_main_gui->setNPoints(d_size); d_main_gui->setSampleRate(d_samp_rate); - if (d_name.size() > 0) + if (!d_name.empty()) set_title(d_name); // initialize update time to 10 times a second @@ -496,7 +496,7 @@ void time_sink_c_impl::_test_trigger_tags(int nitems) std::vector<gr::tag_t> tags; get_tags_in_range( tags, d_trigger_channel / 2, nr, nr + nitems + 1, d_trigger_tag_key); - if (tags.size() > 0) { + if (!tags.empty()) { trigger_index = tags[0].offset - nr; int start = d_index + trigger_index - d_trigger_delay - 1; if (start >= 0) { |