PixelPaint: Remove try_ prefix from fallible IconBag methods

This commit is contained in:
Linus Groh 2023-01-28 20:12:17 +00:00 committed by Jelle Raaijmakers
parent 8a884b2581
commit 86f28ceace
Notes: sideshowbarker 2024-07-17 10:39:39 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
#include <Applications/PixelPaint/IconBag.h>
namespace PixelPaint {
ErrorOr<IconBag> IconBag::try_create()
ErrorOr<IconBag> IconBag::create()
{
IconBag icon_bag;

View file

@ -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 };

View file

@ -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");