clang-tidy: Enable readability-qualified-auto check
This check aims to improve code readability by suggesting the use
of const auto * instead of auto for variables that are pointers
or iterators. This helps clarify the const-ness of the pointed-to
object or container elements.
Change-Id: I5fa46006aa5669834ebb144d32014f8882e563e3
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/host_state_manager.cpp b/host_state_manager.cpp
index 388ac64..27d3e27 100644
--- a/host_state_manager.cpp
+++ b/host_state_manager.cpp
@@ -141,7 +141,7 @@
void Host::executeTransition(Transition tranReq)
{
- auto& sysdUnit = getTarget(tranReq);
+ const auto& sysdUnit = getTarget(tranReq);
auto method = this->bus.new_method_call(SYSTEMD_SERVICE, SYSTEMD_OBJ_PATH,
SYSTEMD_INTERFACE, "StartUnit");