diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-12-17 15:38:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-17 18:37:04 +0100 |
commit | 11377bf0f8332170ae9186b6bde02f4397ff124f (patch) | |
tree | b1dc71b8004c09b0ef172b9139f963320815d5c1 /Userland/Applications/PixelPaint/Image.h | |
parent | 588994bb00770279e42fed1130c72294da1fe097 (diff) | |
download | serenity-11377bf0f8332170ae9186b6bde02f4397ff124f.zip |
PixelPaint: Propagate more errors when saving a project file
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h index 3ad98ba468..ef66374698 100644 --- a/Userland/Applications/PixelPaint/Image.h +++ b/Userland/Applications/PixelPaint/Image.h @@ -72,7 +72,7 @@ public: void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const; - void serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const; + ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const; ErrorOr<void> export_bmp_to_file(Core::File&, bool preserve_alpha_channel); ErrorOr<void> export_png_to_file(Core::File&, bool preserve_alpha_channel); ErrorOr<void> export_qoi_to_file(Core::File&) const; |