diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-01-20 20:06:05 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-26 20:24:37 +0000 |
commit | 82a152b69602de05a28034864185545207639a8c (patch) | |
tree | 308eb816ef76a6579934786822d39f186bad385b /Userland/Games/Chess/ChessWidget.cpp | |
parent | 1971bff31455306b6976fe7e69db851c94a30794 (diff) | |
download | serenity-82a152b69602de05a28034864185545207639a8c.zip |
LibGfx: Remove `try_` prefix from bitmap creation functions
Those don't have any non-try counterpart, so we might as well just omit
it.
Diffstat (limited to 'Userland/Games/Chess/ChessWidget.cpp')
-rw-r--r-- | Userland/Games/Chess/ChessWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Chess/ChessWidget.cpp b/Userland/Games/Chess/ChessWidget.cpp index 5f6fa5fb33..ab61f29436 100644 --- a/Userland/Games/Chess/ChessWidget.cpp +++ b/Userland/Games/Chess/ChessWidget.cpp @@ -381,7 +381,7 @@ static RefPtr<Gfx::Bitmap> get_piece(StringView set, StringView image) builder.append(set); builder.append('/'); builder.append(image); - return Gfx::Bitmap::try_load_from_file(builder.build()).release_value_but_fixme_should_propagate_errors(); + return Gfx::Bitmap::load_from_file(builder.build()).release_value_but_fixme_should_propagate_errors(); } void ChessWidget::set_piece_set(StringView set) |