clang-tidy: Enable readability-make-member-function-const check
Finds non-static member functions that can be made const because the
functions don’t use this in a non-const way.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Iff3a367401d571f9fcff90539aaab59e2c66e627
diff --git a/test/test_activation.cpp b/test/test_activation.cpp
index f63ee11..b7ec3d5 100644
--- a/test/test_activation.cpp
+++ b/test/test_activation.cpp
@@ -44,23 +44,23 @@
utils::freeUtils();
}
- void onUpdateDone()
+ void onUpdateDone() const
{
activation->onUpdateDone();
}
- void onUpdateFailed()
+ void onUpdateFailed() const
{
activation->onUpdateFailed();
}
- int getProgress()
+ int getProgress() const
{
return activation->activationProgress->progress();
}
- const auto& getPsuQueue()
+ const auto& getPsuQueue() const
{
return activation->psuQueue;
}
- std::string getUpdateService(const std::string& psuInventoryPath)
+ std::string getUpdateService(const std::string& psuInventoryPath) const
{
return activation->getUpdateService(psuInventoryPath);
}