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/include/ExitAirTempSensor.hpp b/include/ExitAirTempSensor.hpp
index 2008291..c78253c 100644
--- a/include/ExitAirTempSensor.hpp
+++ b/include/ExitAirTempSensor.hpp
@@ -24,17 +24,17 @@
CFMSensor(std::shared_ptr<sdbusplus::asio::connection>& conn,
const std::string& name, const std::string& sensorConfiguration,
sdbusplus::asio::object_server& objectServer,
- std::vector<thresholds::Threshold>&& thresholds,
+ std::vector<thresholds::Threshold>&& thresholdData,
std::shared_ptr<ExitAirTempSensor>& parent);
~CFMSensor() override;
- bool calculate(double&);
+ bool calculate(double& /*value*/);
void updateReading(void);
void setupMatches(void);
void createMaxCFMIface(void);
void addTachRanges(const std::string& serviceName, const std::string& path);
void checkThresholds(void) override;
- uint64_t getMaxRpm(uint64_t cfmMax);
+ uint64_t getMaxRpm(uint64_t cfmMax) const;
private:
std::vector<sdbusplus::bus::match::match> matches;
@@ -63,7 +63,7 @@
const std::string& name,
const std::string& sensorConfiguration,
sdbusplus::asio::object_server& objectServer,
- std::vector<thresholds::Threshold>&& thresholds);
+ std::vector<thresholds::Threshold>&& thresholdData);
~ExitAirTempSensor() override;
void checkThresholds(void) override;
@@ -79,6 +79,6 @@
sdbusplus::asio::object_server& objServer;
std::chrono::time_point<std::chrono::steady_clock> lastTime;
- double getTotalCFM(void);
+ static double getTotalCFM(void);
bool calculate(double& val);
};