From b08d13aed2a7e7ffdee09833bb24db8ce92dce66 Mon Sep 17 00:00:00 2001
From: Marcus Müller <mmueller@gnuradio.org>
Date: Sat, 17 Aug 2019 20:32:20 +0200
Subject: clang-tidy in gnuradio-runtime: use empty() instead of size()!=0

---
 gr-qtgui/lib/time_sink_f_impl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'gr-qtgui/lib/time_sink_f_impl.cc')

diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc
index e834411e6a..df13998d75 100644
--- a/gr-qtgui/lib/time_sink_f_impl.cc
+++ b/gr-qtgui/lib/time_sink_f_impl.cc
@@ -147,7 +147,7 @@ void time_sink_f_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
@@ -489,7 +489,7 @@ void time_sink_f_impl::_test_trigger_tags(int nitems)
     uint64_t nr = nitems_read(d_trigger_channel);
     std::vector<gr::tag_t> tags;
     get_tags_in_range(tags, d_trigger_channel, 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) {
-- 
cgit v1.2.3