summaryrefslogtreecommitdiff
path: root/redfish-core/include/privileges.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/privileges.hpp')
-rw-r--r--redfish-core/include/privileges.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index 8b4220847b..1225cdf806 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -45,7 +45,7 @@ enum class PrivilegeType
};
/** @brief A fixed array of compile time privileges */
-constexpr std::array<const char*, 5> basePrivileges{
+constexpr std::array<std::string_view, 5> basePrivileges{
"Login", "ConfigureManager", "ConfigureComponents", "ConfigureSelf",
"ConfigureUsers"};
@@ -60,7 +60,7 @@ constexpr const size_t maxPrivilegeCount = 32;
* "hostconsole" user group. This privilege is required to access the host
* console.
*/
-static const std::array<std::string, maxPrivilegeCount> privilegeNames{
+constexpr std::array<std::string_view, maxPrivilegeCount> privilegeNames{
"Login", "ConfigureManager", "ConfigureComponents",
"ConfigureSelf", "ConfigureUsers", "OpenBMCHostConsole"};
@@ -102,7 +102,7 @@ class Privileges
{
if (!setSinglePrivilege(privilege))
{
- BMCWEB_LOG_CRITICAL("Unable to set privilege {}in constructor",
+ BMCWEB_LOG_CRITICAL("Unable to set privilege {} in constructor",
privilege);
}
}