Clang-tidy-14 fixes
Do as the robot commands. All changes made automatically by tidy.
Tested: (Thanks Zhikui)
Downloaded and run on system. Sensors scan normally.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I752f37c9e7a95aa3be8e6980ba6e4b2b48b3395a
diff --git a/src/Thresholds.cpp b/src/Thresholds.cpp
index 1690c25..ff452bc 100644
--- a/src/Thresholds.cpp
+++ b/src/Thresholds.cpp
@@ -210,7 +210,7 @@
}
std::string property =
- sensor->propertyLevel(threshold.level, threshold.direction);
+ Sensor::propertyLevel(threshold.level, threshold.direction);
if (property.empty())
{
continue;
@@ -446,7 +446,7 @@
return;
}
- std::string property = sensor->propertyAlarm(level, direction);
+ std::string property = Sensor::propertyAlarm(level, direction);
if (property.empty())
{
std::cout << "Alarm property is empty \n";
@@ -505,7 +505,7 @@
{
for (const auto& t : map.at(item))
{
- auto& [suffix, level, direction, offset] = t;
+ const auto& [suffix, level, direction, offset] = t;
auto attrPath =
boost::replace_all_copy(inputPath, item, suffix);
if (auto val = readFile(attrPath, scaleFactor))