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/IntelCPUSensor.cpp b/src/IntelCPUSensor.cpp
index e10b8ea..5bf0fb6 100644
--- a/src/IntelCPUSensor.cpp
+++ b/src/IntelCPUSensor.cpp
@@ -111,7 +111,7 @@
}
}
-void IntelCPUSensor::restartRead(void)
+void IntelCPUSensor::restartRead()
{
std::weak_ptr<IntelCPUSensor> weakRef = weak_from_this();
waitTimer.expires_after(std::chrono::milliseconds(pollTime));
@@ -130,7 +130,7 @@
});
}
-void IntelCPUSensor::setupRead(void)
+void IntelCPUSensor::setupRead()
{
if (readingStateGood())
{
@@ -166,7 +166,7 @@
});
}
-void IntelCPUSensor::updateMinMaxValues(void)
+void IntelCPUSensor::updateMinMaxValues()
{
const boost::container::flat_map<
std::string,
@@ -322,7 +322,7 @@
restartRead();
}
-void IntelCPUSensor::checkThresholds(void)
+void IntelCPUSensor::checkThresholds()
{
if (show)
{