aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/octoclock_burn_eeprom.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 09:33:36 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:07:26 -0600
commit107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch)
treefdeaad56030a02948377c45838dab97beb7a5c84 /host/utils/octoclock_burn_eeprom.cpp
parent7d5e48032baa62cbe7467833b9e057900602f4b9 (diff)
downloaduhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.gz
uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.bz2
uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.zip
host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json
Diffstat (limited to 'host/utils/octoclock_burn_eeprom.cpp')
-rw-r--r--host/utils/octoclock_burn_eeprom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/octoclock_burn_eeprom.cpp b/host/utils/octoclock_burn_eeprom.cpp
index 6221c4e83..1e8341e13 100644
--- a/host/utils/octoclock_burn_eeprom.cpp
+++ b/host/utils/octoclock_burn_eeprom.cpp
@@ -82,7 +82,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
if (!vm.count("read-all")) {
std::cout << std::endl;
for (size_t i = 0; i < vals_vec.size(); i++) {
- if (vals_vec[i] != "") {
+ if (!vals_vec[i].empty()) {
oc_eeprom[keys_vec[i]] = vals_vec[i];
std::cout << boost::format("Setting EEPROM [\"%s\"] to \"%s\"...")
% keys_vec[i] % vals_vec[i]