Avoid some copies in some loops

Auto does not work the way you want it to in this case, and gives you
copies, when you really wanted const references.  This commit moves the
loops to const references.

Change-Id: I7aceedc03528b4d41c56b100e0c956a64b001ad9
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index e0d9986..110e6ac 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -166,9 +166,9 @@
                 return;
             }
 
-            for (auto pathGroup : objects)
+            for (const auto &pathGroup : objects)
             {
-                for (auto connectionGroup : pathGroup.second)
+                for (const auto &connectionGroup : pathGroup.second)
                 {
                     if (connectionGroup.first == connection_name)
                     {