aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-get-value.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-08-30 22:17:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-08-30 22:17:06 +0200
commit25d82b0c52120c81cfed5bc1f245408f08203b7b (patch)
tree325e95834cadf5d72003bb7f3b64558b4af6faaf /apps/sm-get-value.cpp
parentb99017a7938cb36e234025d9ae592bac06ec3ec6 (diff)
downloadble-toys-25d82b0c52120c81cfed5bc1f245408f08203b7b.tar.gz
ble-toys-25d82b0c52120c81cfed5bc1f245408f08203b7b.tar.bz2
ble-toys-25d82b0c52120c81cfed5bc1f245408f08203b7b.tar.xz
ble-toys-25d82b0c52120c81cfed5bc1f245408f08203b7b.zip
Fixing lots of small nits:
o boost::uuid didn't give much, use our own and add new short uuid type. o Fixing nits from clang-tidy.
Diffstat (limited to 'apps/sm-get-value.cpp')
-rw-r--r--apps/sm-get-value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sm-get-value.cpp b/apps/sm-get-value.cpp
index 483df70..eb7a141 100644
--- a/apps/sm-get-value.cpp
+++ b/apps/sm-get-value.cpp
@@ -153,7 +153,7 @@ public:
}
// If the user didn't specify any sensors, add all.
- if (sensors.size() == 0) {
+ if (sensors.empty()) {
for (unsigned int i = 0; i < sensorCount; i++) {
sensorIndexes.push_back(i);
}
@@ -165,7 +165,7 @@ public:
return;
}
- sensors.push_back(make_pair(i, soilMoisture.getName(i)));
+ sensors.emplace_back(make_pair(i, soilMoisture.getName(i)));
});
}
auto mac = gatt->getDevice().getMac().str();