Update clang format
Style only change
Change-Id: I41c97cbfb6a0ebf155a34166bc627f49a398442b
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/sensor.hpp b/include/sensor.hpp
index 73e44d2..de790c8 100644
--- a/include/sensor.hpp
+++ b/include/sensor.hpp
@@ -6,9 +6,9 @@
constexpr size_t sensorFailedPollTimeMs = 5000;
struct Sensor
{
- Sensor(const std::string &name, const std::string &path,
- std::vector<thresholds::Threshold> &&thresholdData,
- const std::string &configurationPath, const std::string &objectType,
+ Sensor(const std::string& name, const std::string& path,
+ std::vector<thresholds::Threshold>&& thresholdData,
+ const std::string& configurationPath, const std::string& objectType,
const double max, const double min) :
name(name),
path(path), thresholds(std::move(thresholdData)),
@@ -32,7 +32,7 @@
bool overridenState = false;
bool internalSet = false;
- int setSensorValue(const double &newValue, double &oldValue)
+ int setSensorValue(const double& newValue, double& oldValue)
{
if (internalSet)
{
@@ -46,16 +46,16 @@
}
void
- setInitialProperties(std::shared_ptr<sdbusplus::asio::connection> &conn)
+ setInitialProperties(std::shared_ptr<sdbusplus::asio::connection>& conn)
{
sensorInterface->register_property("MaxValue", maxValue);
sensorInterface->register_property("MinValue", minValue);
sensorInterface->register_property(
- "Value", value, [&](const double &newValue, double &oldValue) {
+ "Value", value, [&](const double& newValue, double& oldValue) {
return setSensorValue(newValue, oldValue);
});
- for (auto &threshold : thresholds)
+ for (auto& threshold : thresholds)
{
std::shared_ptr<sdbusplus::asio::dbus_interface> iface;
std::string level;
@@ -101,7 +101,7 @@
}
iface->register_property(
level, threshold.value,
- [&](const double &request, double &oldValue) {
+ [&](const double& request, double& oldValue) {
oldValue = request; // todo, just let the config do this?
threshold.value = request;
thresholds::persistThreshold(configurationPath, objectType,
@@ -127,7 +127,7 @@
}
}
- void updateValue(const double &newValue)
+ void updateValue(const double& newValue)
{
// Indicate that it is internal set call
internalSet = true;