aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/latency/lib/Responder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/utils/latency/lib/Responder.cpp')
-rw-r--r--host/utils/latency/lib/Responder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/latency/lib/Responder.cpp b/host/utils/latency/lib/Responder.cpp
index c2f224d00..65c3e2941 100644
--- a/host/utils/latency/lib/Responder.cpp
+++ b/host/utils/latency/lib/Responder.cpp
@@ -664,7 +664,7 @@ bool Responder::handle_interactive_control()
// print updated interactive control value
void Responder::print_interactive_msg(std::string msg)
{
- if (msg != "") {
+ if (!msg.empty()) {
// move cursor back to beginning of line
int y, x;
getyx(_window, y, x);
@@ -1107,7 +1107,7 @@ void Responder::write_log_file()
logs << boost::format("device=%s") % _usrp->get_mboard_name() << endl;
logs << boost::format("device_args=%s") % _opt.device_args << endl;
logs << boost::format("type=%s") % hw_info["type"] << endl;
- if (hw_info.size() > 0) {
+ if (!hw_info.empty()) {
logs << boost::format("usrp_addr=%s") % hw_info["usrp_addr"] << endl;
logs << boost::format("usrp_name=%s") % hw_info["name"] << endl;
logs << boost::format("serial=%s") % hw_info["serial"] << endl;