mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:18:11 +00:00
AK: Stop using DeprecatedString
in Base64 encoding
This commit is contained in:
parent
99c1b634fc
commit
25f2e4981c
14 changed files with 47 additions and 27 deletions
|
@ -238,7 +238,8 @@ static DeprecatedString folder_image_data()
|
|||
static DeprecatedString cache;
|
||||
if (cache.is_empty()) {
|
||||
auto file = Core::MappedFile::map("/res/icons/16x16/filetype-folder.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
cache = encode_base64(file->bytes());
|
||||
// FIXME: change to TRY() and make method fallible
|
||||
cache = MUST(encode_base64(file->bytes())).to_deprecated_string();
|
||||
}
|
||||
return cache;
|
||||
}
|
||||
|
@ -248,7 +249,8 @@ static DeprecatedString file_image_data()
|
|||
static DeprecatedString cache;
|
||||
if (cache.is_empty()) {
|
||||
auto file = Core::MappedFile::map("/res/icons/16x16/filetype-unknown.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
cache = encode_base64(file->bytes());
|
||||
// FIXME: change to TRY() and make method fallible
|
||||
cache = MUST(encode_base64(file->bytes())).to_deprecated_string();
|
||||
}
|
||||
return cache;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue