summaryrefslogtreecommitdiff
path: root/redfish-core/lib/account_service.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-25 21:28:56 +0300
committerEd Tanous <ed@tanous.net>2022-02-11 23:30:05 +0300
commite05aec50f10116e6dda7e377bc61799aa5b7c166 (patch)
tree964aedffefcc787029c571a83889247caa0d3968 /redfish-core/lib/account_service.hpp
parent213ffc701d838bece5893cda23475e7518bd6955 (diff)
downloadbmcweb-e05aec50f10116e6dda7e377bc61799aa5b7c166.tar.xz
Add readability-redundant-* checks
There's a number of redundancies in our code that clang can sanitize out. Fix the existing problems, and enable the checks. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie63d7b7f0777b702fbf1b23a24e1bed7b4f5183b
Diffstat (limited to 'redfish-core/lib/account_service.hpp')
-rw-r--r--redfish-core/lib/account_service.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 87707825ea..5530e12ad0 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -1191,7 +1191,7 @@ inline void updateUserProperties(std::shared_ptr<bmcweb::AsyncResp> asyncResp,
messages::success(asyncResp->res);
return;
},
- "xyz.openbmc_project.User.Manager", dbusObjectPath.c_str(),
+ "xyz.openbmc_project.User.Manager", dbusObjectPath,
"org.freedesktop.DBus.Properties", "Set",
"xyz.openbmc_project.User.Attributes", "UserEnabled",
dbus::utility::DbusVariantType{*enabled});
@@ -1221,7 +1221,7 @@ inline void updateUserProperties(std::shared_ptr<bmcweb::AsyncResp> asyncResp,
}
messages::success(asyncResp->res);
},
- "xyz.openbmc_project.User.Manager", dbusObjectPath.c_str(),
+ "xyz.openbmc_project.User.Manager", dbusObjectPath,
"org.freedesktop.DBus.Properties", "Set",
"xyz.openbmc_project.User.Attributes", "UserPrivilege",
dbus::utility::DbusVariantType{priv});
@@ -1250,7 +1250,7 @@ inline void updateUserProperties(std::shared_ptr<bmcweb::AsyncResp> asyncResp,
messages::success(asyncResp->res);
return;
},
- "xyz.openbmc_project.User.Manager", dbusObjectPath.c_str(),
+ "xyz.openbmc_project.User.Manager", dbusObjectPath,
"org.freedesktop.DBus.Properties", "Set",
"xyz.openbmc_project.User.Attributes",
"UserLockedForFailedAttempt",