diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2019-04-24 19:19:18 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-05-02 03:37:45 +0300 |
commit | ae29b8c4d22fddb9f17610f87d27b53c95509e7c (patch) | |
tree | 5d01a7b1e328ead214f719dc6de1f70929dde049 /redfish-core/lib | |
parent | 7bffdb7e9da69ae5416cda8df826372c33716beb (diff) | |
download | bmcweb-ae29b8c4d22fddb9f17610f87d27b53c95509e7c.tar.xz |
bmcweb: /s/boost::beast::string_view/std::string_view/g
Follow-on to https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/18891
Tested: Checked that the host console and virtual media endpoints
still worked as expected.
Change-Id: Ifdc5f21f3668bdf9bd24189504aaeb17b232c921
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r-- | redfish-core/lib/account_service.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index 70eed7804f..6d38c06a66 100644 --- a/redfish-core/lib/account_service.hpp +++ b/redfish-core/lib/account_service.hpp @@ -31,7 +31,7 @@ using ManagedObjectType = std::vector<std::pair< std::string, boost::container::flat_map< std::string, std::variant<bool, std::string>>>>>; -inline std::string getPrivilegeFromRoleId(boost::beast::string_view role) +inline std::string getPrivilegeFromRoleId(std::string_view role) { if (role == "priv-admin") { @@ -51,7 +51,7 @@ inline std::string getPrivilegeFromRoleId(boost::beast::string_view role) } return ""; } -inline std::string getRoleIdFromPrivilege(boost::beast::string_view role) +inline std::string getRoleIdFromPrivilege(std::string_view role) { if (role == "Administrator") { |