mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
PixelPaint: Remove try_
prefix from fallible IconBag methods
This commit is contained in:
parent
8a884b2581
commit
86f28ceace
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…
Add table
Add a link
Reference in a new issue