mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:48:12 +00:00
LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
This commit is contained in:
parent
16f064d9be
commit
235f39e449
104 changed files with 412 additions and 397 deletions
|
@ -27,7 +27,7 @@ PasswordInputDialog::PasswordInputDialog(Window* parent_window, String title, St
|
|||
|
||||
auto& key_icon_label = *widget.find_descendant_of_type_named<GUI::Label>("key_icon_label");
|
||||
|
||||
key_icon_label.set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/32x32/key.png"));
|
||||
key_icon_label.set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/32x32/key.png").release_value_but_fixme_should_propagate_errors());
|
||||
|
||||
auto& server_label = *widget.find_descendant_of_type_named<GUI::Label>("server_label");
|
||||
server_label.set_text(move(server));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue