diff options
author | Karol Baraniecki <karol@baraniecki.eu> | 2023-03-07 14:33:39 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-09 12:59:57 +0000 |
commit | f8e94f286280c4c6ed05c5490a7f55773adc491b (patch) | |
tree | 719054d26b7ce30b3eddd51e4dceab5a3d4e9ad1 /Userland/Libraries | |
parent | 68d3f348d9c5da8075118053876057aa38c3acee (diff) | |
download | serenity-f8e94f286280c4c6ed05c5490a7f55773adc491b.zip |
LibCore: Use fallible versions of StringBuilder::append in MimeData
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCore/MimeData.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/MimeData.cpp b/Userland/Libraries/LibCore/MimeData.cpp index dea65ff588..7951172a3c 100644 --- a/Userland/Libraries/LibCore/MimeData.cpp +++ b/Userland/Libraries/LibCore/MimeData.cpp @@ -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())); |