fix constVariableReference cpp style check

Declaring the const-ness of a parameter is just another form of
type safety. The benefit of const correctness is that it prevents
you from inadvertently modifying something you didn’t expect
would be modified. The commit fixes places in the code where a
parameter could be a constant.

Change-Id: Ie6f1d4b37373979a3efef8cb617294d41dec888c
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/oem/ibm/libpldmresponder/file_io.hpp b/oem/ibm/libpldmresponder/file_io.hpp
index 9e158dc..63cd51b 100644
--- a/oem/ibm/libpldmresponder/file_io.hpp
+++ b/oem/ibm/libpldmresponder/file_io.hpp
@@ -249,7 +249,7 @@
             std::string vspstring;
             std::string password;
 
-            for (auto& interface : interfaces)
+            for (const auto& interface : interfaces)
             {
                 if (interface.first == resDumpEntry)
                 {
@@ -288,7 +288,7 @@
             msg.read(path, interfaces);
             std::string csr;
 
-            for (auto& interface : interfaces)
+            for (const auto& interface : interfaces)
             {
                 if (interface.first == certAuthority)
                 {