mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibCore: Use StringView
instead of char *
in Account
This commit is contained in:
parent
0396b6da82
commit
507cb411c2
10 changed files with 33 additions and 36 deletions
|
@ -299,7 +299,7 @@ Service::Service(Core::ConfigFile const& config, StringView name)
|
|||
|
||||
m_user = config.read_entry(name, "User");
|
||||
if (!m_user.is_null()) {
|
||||
auto result = Core::Account::from_name(m_user.characters(), Core::Account::Read::PasswdOnly);
|
||||
auto result = Core::Account::from_name(m_user, Core::Account::Read::PasswdOnly);
|
||||
if (result.is_error())
|
||||
warnln("Failed to resolve user {}: {}", m_user, result.error());
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue