summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Image.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-07 02:23:04 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commit9268ed9605f4d345d5c7ee03cd6092bcf5be87eb (patch)
tree6b32052a1ce0f3ed74b9f6898952b26aacae8d35 /Userland/Applications/PixelPaint/Image.h
parent77fd4625b5cd9a2f3bd083d5324937e7b81eb0ec (diff)
downloadserenity-9268ed9605f4d345d5c7ee03cd6092bcf5be87eb.zip
PixelPaint: Use ErrorOr<T> for Image::try_compose_bitmap()
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.h')
-rw-r--r--Userland/Applications/PixelPaint/Image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h
index df48b44d47..414874e8d2 100644
--- a/Userland/Applications/PixelPaint/Image.h
+++ b/Userland/Applications/PixelPaint/Image.h
@@ -53,7 +53,7 @@ public:
static RefPtr<Gfx::Bitmap> try_decode_bitmap(const ReadonlyBytes& bitmap_data);
// This generates a new Bitmap with the final image (all layers composed according to their attributes.)
- RefPtr<Gfx::Bitmap> try_compose_bitmap(Gfx::BitmapFormat format) const;
+ ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_compose_bitmap(Gfx::BitmapFormat format) const;
RefPtr<Gfx::Bitmap> try_copy_bitmap(Selection const&) const;
size_t layer_count() const { return m_layers.size(); }