summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibCore/MimeData.cpp4
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()));