mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:52:12 +00:00
LibGfx: Remove try_
prefix from bitmap creation functions
Those don't have any non-try counterpart, so we might as well just omit it.
This commit is contained in:
parent
1971bff314
commit
82a152b696
186 changed files with 598 additions and 598 deletions
|
@ -21,12 +21,12 @@ namespace GUI {
|
|||
AbstractThemePreview::AbstractThemePreview(Gfx::Palette const& preview_palette)
|
||||
: m_preview_palette(preview_palette)
|
||||
{
|
||||
m_active_window_icon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/window.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_inactive_window_icon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/window.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_active_window_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/window.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_inactive_window_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/window.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_default_close_bitmap = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/window-close.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_default_maximize_bitmap = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/upward-triangle.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_default_minimize_bitmap = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/downward-triangle.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_default_close_bitmap = Gfx::Bitmap::load_from_file("/res/icons/16x16/window-close.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_default_maximize_bitmap = Gfx::Bitmap::load_from_file("/res/icons/16x16/upward-triangle.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
m_default_minimize_bitmap = Gfx::Bitmap::load_from_file("/res/icons/16x16/downward-triangle.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
VERIFY(m_active_window_icon);
|
||||
VERIFY(m_inactive_window_icon);
|
||||
|
@ -44,7 +44,7 @@ void AbstractThemePreview::load_theme_bitmaps()
|
|||
last_path = DeprecatedString::empty();
|
||||
bitmap = nullptr;
|
||||
} else if (last_path != path) {
|
||||
auto bitmap_or_error = Gfx::Bitmap::try_load_from_file(path);
|
||||
auto bitmap_or_error = Gfx::Bitmap::load_from_file(path);
|
||||
if (bitmap_or_error.is_error()) {
|
||||
last_path = DeprecatedString::empty();
|
||||
bitmap = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue