mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibCore: Use fallible versions of StringBuilder::append in MimeData
This commit is contained in:
parent
68d3f348d9
commit
f8e94f2862
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…
Add table
Add a link
Reference in a new issue