lint: fix trivial clang tidy errors
Change-Id: Ie5395004a451d6168249f56f75c5e6ae31dca4af
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/test/util/debug_output.hpp b/src/test/util/debug_output.hpp
index 3cdf42b..ea0ebf9 100644
--- a/src/test/util/debug_output.hpp
+++ b/src/test/util/debug_output.hpp
@@ -8,20 +8,20 @@
{
using namespace std;
cout << "##### AssociationOwnersType #####" << endl;
- for (auto i : assocOwners)
+ for (const auto& i : assocOwners)
{
cout << "------------------------------------" << endl;
cout << setw(15) << left << "OBJ PATH:" << i.first << endl;
- for (auto j : i.second)
+ for (const auto& j : i.second)
{
cout << setw(16) << left << "DBUS SERVICE:" << j.first << endl;
- for (auto k : j.second)
+ for (const auto& k : j.second)
{
cout << setw(17) << left << "ASSOC PATH:" << k.first << endl;
- for (auto l : k.second)
+ for (const auto& l : k.second)
{
cout << setw(18) << left << "ENDPOINT:" << l << endl;
}
@@ -41,7 +41,7 @@
cout << setw(15) << left << "OBJ PATH:" << i.first << endl;
auto intfEndpoints = std::get<endpointsPos>(i.second);
- for (auto k : intfEndpoints)
+ for (const auto& k : intfEndpoints)
{
cout << setw(16) << left << "ENDPOINTS:" << k << endl;
}
@@ -53,16 +53,16 @@
{
using namespace std;
cout << "##### interfaceMapType #####" << endl;
- for (auto i : intfMap)
+ for (const auto& i : intfMap)
{
cout << "------------------------------------" << endl;
cout << setw(15) << left << "OBJ PATH:" << i.first << endl;
- for (auto j : i.second)
+ for (const auto& j : i.second)
{
cout << setw(16) << left << "DBUS SERVICE:" << j.first << endl;
- for (auto k : j.second)
+ for (const auto& k : j.second)
{
cout << setw(18) << left << "INTERFACE:" << k << endl;
}