diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-28 20:12:17 +0000 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-01-28 22:41:36 +0100 |
commit | 86f28ceace9f75d3444927bc51203130290627c0 (patch) | |
tree | d7f3d6869f9b617cb4f767a15870826bb50512c7 /Userland | |
parent | 8a884b258143fd55b77b6a4ef0922a24d956ab19 (diff) | |
download | serenity-86f28ceace9f75d3444927bc51203130290627c0.zip |
PixelPaint: Remove `try_` prefix from fallible IconBag methods
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/IconBag.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/IconBag.h | 2 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/PixelPaint/IconBag.cpp b/Userland/Applications/PixelPaint/IconBag.cpp index 1d17cf90fd..2e344d8d43 100644 --- a/Userland/Applications/PixelPaint/IconBag.cpp +++ b/Userland/Applications/PixelPaint/IconBag.cpp @@ -8,7 +8,7 @@ #include <Applications/PixelPaint/IconBag.h> namespace PixelPaint { -ErrorOr<IconBag> IconBag::try_create() +ErrorOr<IconBag> IconBag::create() { IconBag icon_bag; diff --git a/Userland/Applications/PixelPaint/IconBag.h b/Userland/Applications/PixelPaint/IconBag.h index 3fe1ae378a..cbdd3fc4d0 100644 --- a/Userland/Applications/PixelPaint/IconBag.h +++ b/Userland/Applications/PixelPaint/IconBag.h @@ -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 }; diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 8ed439bc17..3bfa5bfb3a 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -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"); |