mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
LibGUI: Add ErrorOr wrapper for default icon creation
This commit is contained in:
parent
42b06d5f7d
commit
61fed26400
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Julius Heijmen <julius.heijmen@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -44,6 +45,7 @@ public:
|
|||
~Icon() { }
|
||||
|
||||
static Icon default_icon(StringView);
|
||||
static ErrorOr<Icon> try_create_default_icon(StringView);
|
||||
|
||||
Icon& operator=(const Icon& other)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue