mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGfx: Propagate errors from serializing bitmaps
We essentially just end up moving `release_value_but_fixme_...` one layer down, but it makes adding more fallible operations in the serialization function more comfortable.
This commit is contained in:
parent
81863eaf57
commit
6ea3c1659a
4 changed files with 8 additions and 9 deletions
|
@ -128,7 +128,7 @@ RefPtr<Core::MimeData> Model::mime_data(ModelSelection const& selection) const
|
|||
mime_data->set_data(drag_data_type(), data_builder.to_byte_buffer());
|
||||
mime_data->set_text(text_builder.to_deprecated_string());
|
||||
if (bitmap)
|
||||
mime_data->set_data("image/x-raw-bitmap", bitmap->serialize_to_byte_buffer());
|
||||
mime_data->set_data("image/x-raw-bitmap", bitmap->serialize_to_byte_buffer().release_value_but_fixme_should_propagate_errors());
|
||||
|
||||
return mime_data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue