mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibCore: Use fallible versions of StringBuilder::append in MimeData
This commit is contained in:
parent
68d3f348d9
commit
f8e94f2862
Notes:
sideshowbarker
2024-07-17 00:27:16 +09:00
Author: https://github.com/karolba Commit: https://github.com/SerenityOS/serenity/commit/f8e94f2862 Pull-request: https://github.com/SerenityOS/serenity/pull/17746 Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ ErrorOr<void> MimeData::set_urls(Vector<URL> const& urls)
|
|||
{
|
||||
StringBuilder builder;
|
||||
for (auto& url : urls) {
|
||||
builder.append(url.to_deprecated_string());
|
||||
builder.append('\n');
|
||||
TRY(builder.try_append(url.to_deprecated_string()));
|
||||
TRY(builder.try_append('\n'));
|
||||
}
|
||||
set_data("text/uri-list", TRY(builder.try_to_byte_buffer()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue