clang-tidy: Enable readability-convert-member-functions-to-static
This check finds non-static member functions that can be made
static because the functions don’t use this.
This check also triggers readability-static-accessed-through
-instance check as we are trying to access a static member
function through an instance.
Change-Id: I887b514a8478abedc24d5495d057b9d3e7dc9bdf
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/scheduled_host_transition.hpp b/scheduled_host_transition.hpp
index 82e0731..2fe3e36 100644
--- a/scheduled_host_transition.hpp
+++ b/scheduled_host_transition.hpp
@@ -79,7 +79,7 @@
*
* @return - return current epoch time
*/
- std::chrono::seconds getTime();
+ static std::chrono::seconds getTime();
/** @brief Implement host transition
*
@@ -132,7 +132,7 @@
*
* @return bool - true if successful, false otherwise
*/
- bool deserializeScheduledValues(uint64_t& time, Transition& trans);
+ static bool deserializeScheduledValues(uint64_t& time, Transition& trans);
/** @brief Restore scheduled time and requested transition from persisted
* file */