mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
PixelPaint: Remove try_
prefix from fallible IconBag methods
This commit is contained in:
parent
8a884b2581
commit
86f28ceace
Notes:
sideshowbarker
2024-07-17 10:39:39 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/86f28ceace Pull-request: https://github.com/SerenityOS/serenity/pull/17222
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <Applications/PixelPaint/IconBag.h>
|
||||
|
||||
namespace PixelPaint {
|
||||
ErrorOr<IconBag> IconBag::try_create()
|
||||
ErrorOr<IconBag> IconBag::create()
|
||||
{
|
||||
IconBag icon_bag;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace PixelPaint {
|
||||
struct IconBag final {
|
||||
static ErrorOr<IconBag> try_create();
|
||||
static ErrorOr<IconBag> create();
|
||||
|
||||
RefPtr<Gfx::Bitmap> filetype_pixelpaint { nullptr };
|
||||
RefPtr<Gfx::Bitmap> new_clipboard { nullptr };
|
||||
|
|
|
@ -40,7 +40,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto app_icon = GUI::Icon::default_icon("app-pixel-paint"sv);
|
||||
|
||||
PixelPaint::g_icon_bag = TRY(PixelPaint::IconBag::try_create());
|
||||
PixelPaint::g_icon_bag = TRY(PixelPaint::IconBag::create());
|
||||
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("Pixel Paint");
|
||||
|
|
Loading…
Reference in a new issue