summaryrefslogtreecommitdiff
path: root/redfish-core/lib/log_services.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r--redfish-core/lib/log_services.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 629db4747c..8a0bd3a189 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -434,7 +434,7 @@ inline void
{
if (propertyMap.first == "Status")
{
- auto status = std::get_if<std::string>(
+ const auto* status = std::get_if<std::string>(
&propertyMap.second);
if (status == nullptr)
{
@@ -453,7 +453,7 @@ inline void
{
if (propertyMap.first == "Size")
{
- auto sizePtr =
+ const auto* sizePtr =
std::get_if<uint64_t>(&propertyMap.second);
if (sizePtr == nullptr)
{
@@ -988,7 +988,7 @@ inline void requestRoutesSystemLogServiceCollection(App& app)
return;
}
- for (auto& pathStr : subtreePath)
+ for (const auto& pathStr : subtreePath)
{
if (pathStr.find("PostCode") != std::string::npos)
{