mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
PixelPaint: Use ErrorOr<T> for Image and Layer creation helpers
This commit is contained in:
parent
9268ed9605
commit
801d46d02c
7 changed files with 76 additions and 113 deletions
|
@ -18,7 +18,7 @@ public:
|
|||
ProjectLoader() = default;
|
||||
~ProjectLoader() = default;
|
||||
|
||||
Result<void, String> try_load_from_fd_and_close(int fd, StringView path);
|
||||
ErrorOr<void> try_load_from_fd_and_close(int fd, StringView path);
|
||||
|
||||
bool is_raw_image() const { return m_is_raw_image; }
|
||||
bool has_image() const { return !m_image.is_null(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue