diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-26 18:58:09 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-27 20:38:49 +0000 |
commit | 6e7459322d8336bfe52e390ab4a1b2e82e24c05e (patch) | |
tree | 6da4b3a89764a22a1c62eabfa5fc5ee954519c41 /Userland/Libraries/LibCore/Account.cpp | |
parent | da81041e97d0fc7d37a985ce6ca4ded19ce2cdd1 (diff) | |
download | serenity-6e7459322d8336bfe52e390ab4a1b2e82e24c05e.zip |
AK: Remove StringBuilder::build() in favor of to_deprecated_string()
Having an alias function that only wraps another one is silly, and
keeping the more obvious name should flush out more uses of deprecated
strings.
No behavior change.
Diffstat (limited to 'Userland/Libraries/LibCore/Account.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/Account.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/Account.cpp b/Userland/Libraries/LibCore/Account.cpp index 7f2aaf6324..7c24d07b5c 100644 --- a/Userland/Libraries/LibCore/Account.cpp +++ b/Userland/Libraries/LibCore/Account.cpp @@ -39,7 +39,7 @@ static DeprecatedString get_salt() auto salt_string = MUST(encode_base64({ random_data, sizeof(random_data) })); builder.append(salt_string); - return builder.build(); + return builder.to_deprecated_string(); } static Vector<gid_t> get_extra_gids(passwd const& pwd) @@ -196,7 +196,7 @@ void Account::set_password_enabled(bool enabled) StringBuilder builder; builder.append('!'); builder.append(m_password_hash); - m_password_hash = builder.build(); + m_password_hash = builder.to_deprecated_string(); } } |