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/systemd_target_monitor.cpp b/systemd_target_monitor.cpp
index a0fea9e..44841c8 100644
--- a/systemd_target_monitor.cpp
+++ b/systemd_target_monitor.cpp
@@ -20,7 +20,7 @@
{
std::cout << target << " " << value.errorToLog << std::endl;
std::cout << " ";
- for (auto& eToMonitor : value.errorsToMonitor)
+ for (const auto& eToMonitor : value.errorsToMonitor)
{
std::cout << eToMonitor << ", ";
}