Mouse: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 12:21:13 +01:00 committed by Andreas Kling
commit 1adc808664
Notes: sideshowbarker 2024-07-17 22:37:10 +09:00

View file

@ -160,7 +160,7 @@ private:
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
auto app = TRY(GUI::Application::try_create(arguments));
auto app_icon = GUI::Icon::default_icon("app-mouse");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-mouse"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
TRY(Core::System::unveil("/res", "r"));