summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-06-08 22:33:15 +0200
committerJeff Long <willcode4@gmail.com>2021-07-08 14:42:40 -0400
commit7b21032dea9d4d8ead09178fa2fa99fb37d7f9a2 (patch)
tree973505226b2c540ae7af72b4acf7d8e1e5ba7e85
parentcf9932d6a3ffe9aa4ec65d9d2677c1a3b877b9d6 (diff)
clang-tidy: run-clang-tidy with default checks on gr-soapy
* use empty() on antenna vector Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r--gr-soapy/lib/block_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-soapy/lib/block_impl.cc b/gr-soapy/lib/block_impl.cc
index c9eaf4fe05..e4148feb9f 100644
--- a/gr-soapy/lib/block_impl.cc
+++ b/gr-soapy/lib/block_impl.cc
@@ -457,7 +457,7 @@ void block_impl::set_antenna(const size_t channel, const std::string& name)
std::vector<std::string> antennas = d_device->listAntennas(d_direction, channel);
// Ignore call if there are no antennas.
- if (antennas.size() == 0) {
+ if (antennas.empty()) {
return;
}