summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Image.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-01-28 20:12:17 +0000
committerJelle Raaijmakers <jelle@gmta.nl>2023-01-28 22:41:36 +0100
commit39f1a6eb6f9e7c8f56e3168d10c2bc565ce10257 (patch)
tree1fbceab668463ff08d8302d84f3ac5a60421575e /Userland/Applications/PixelPaint/Image.h
parent9c08bb95553539d1880a5ac81ba5608d4ad874de (diff)
downloadserenity-39f1a6eb6f9e7c8f56e3168d10c2bc565ce10257.zip
PixelPaint: Remove `try_` prefix from fallible Image methods
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.h')
-rw-r--r--Userland/Applications/PixelPaint/Image.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h
index b029056d22..b78dde7372 100644
--- a/Userland/Applications/PixelPaint/Image.h
+++ b/Userland/Applications/PixelPaint/Image.h
@@ -45,15 +45,15 @@ protected:
class Image : public RefCounted<Image> {
public:
- static ErrorOr<NonnullRefPtr<Image>> try_create_with_size(Gfx::IntSize);
- static ErrorOr<NonnullRefPtr<Image>> try_create_from_pixel_paint_json(JsonObject const&);
- static ErrorOr<NonnullRefPtr<Image>> try_create_from_bitmap(NonnullRefPtr<Gfx::Bitmap> const&);
+ static ErrorOr<NonnullRefPtr<Image>> create_with_size(Gfx::IntSize);
+ static ErrorOr<NonnullRefPtr<Image>> create_from_pixel_paint_json(JsonObject const&);
+ static ErrorOr<NonnullRefPtr<Image>> create_from_bitmap(NonnullRefPtr<Gfx::Bitmap> const&);
- static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_decode_bitmap(ReadonlyBytes);
+ static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> decode_bitmap(ReadonlyBytes);
// This generates a new Bitmap with the final image (all layers composed according to their attributes.)
- ErrorOr<NonnullRefPtr<Gfx::Bitmap>> try_compose_bitmap(Gfx::BitmapFormat format) const;
- RefPtr<Gfx::Bitmap> try_copy_bitmap(Selection const&) const;
+ ErrorOr<NonnullRefPtr<Gfx::Bitmap>> compose_bitmap(Gfx::BitmapFormat format) const;
+ RefPtr<Gfx::Bitmap> copy_bitmap(Selection const&) const;
Selection& selection() { return m_selection; }
Selection const& selection() const { return m_selection; }