Add modernize-redundant-void-arg
Enable this check and fix the failures.
Change-Id: I89b13daf1161be40564367562bb9c8c0c459e1d0
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/src/ExternalSensor.hpp b/src/ExternalSensor.hpp
index 20dd2f0..6f5b3db 100644
--- a/src/ExternalSensor.hpp
+++ b/src/ExternalSensor.hpp
@@ -31,7 +31,7 @@
writeHookIn);
// Returns true if sensor has external Value that is subject to timeout
- bool isAliveAndPerishable(void) const;
+ bool isAliveAndPerishable() const;
// Returns true if AliveAndPerishable and timeout has not yet happened
bool
@@ -41,7 +41,7 @@
void writeBegin(const std::chrono::steady_clock::time_point& now);
// Marks sensor as timed out, replacing Value with floating-point "NaN"
- void writeInvalidate(void);
+ void writeInvalidate();
// Returns amount of time elapsed since last writeBegin() happened
std::chrono::steady_clock::duration
@@ -61,6 +61,6 @@
std::function<void(const std::chrono::steady_clock::time_point& now)>
writeHook;
- void checkThresholds(void) override;
- void externalSetTrigger(void);
+ void checkThresholds() override;
+ void externalSetTrigger();
};