WidgetGallery: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 12:22:17 +01:00 committed by Andreas Kling
commit d12359ff20
Notes: sideshowbarker 2024-07-17 22:37:06 +09:00

View file

@ -22,7 +22,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil("/home/anon", "r"));
TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
auto app_icon = GUI::Icon::default_icon("app-widget-gallery");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-widget-gallery"));
auto window = TRY(GUI::Window::try_create());
window->resize(430, 480);