diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-28 20:12:17 +0000 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-01-28 22:41:36 +0100 |
commit | 8a884b258143fd55b77b6a4ef0922a24d956ab19 (patch) | |
tree | a6f7bb9328a9da48d737a820006d4528b384efdc /Userland/Applications/PixelPaint/Layer.h | |
parent | 39f1a6eb6f9e7c8f56e3168d10c2bc565ce10257 (diff) | |
download | serenity-8a884b258143fd55b77b6a4ef0922a24d956ab19.zip |
PixelPaint: Remove `try_` prefix from fallible Image methods
Diffstat (limited to 'Userland/Applications/PixelPaint/Layer.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Layer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/PixelPaint/Layer.h b/Userland/Applications/PixelPaint/Layer.h index fe8275ed1c..a2a4046b7f 100644 --- a/Userland/Applications/PixelPaint/Layer.h +++ b/Userland/Applications/PixelPaint/Layer.h @@ -29,9 +29,9 @@ class Layer AK_MAKE_NONMOVABLE(Layer); public: - static ErrorOr<NonnullRefPtr<Layer>> try_create_with_size(Image&, Gfx::IntSize, DeprecatedString name); - static ErrorOr<NonnullRefPtr<Layer>> try_create_with_bitmap(Image&, NonnullRefPtr<Gfx::Bitmap>, DeprecatedString name); - static ErrorOr<NonnullRefPtr<Layer>> try_create_snapshot(Image&, Layer const&); + static ErrorOr<NonnullRefPtr<Layer>> create_with_size(Image&, Gfx::IntSize, DeprecatedString name); + static ErrorOr<NonnullRefPtr<Layer>> create_with_bitmap(Image&, NonnullRefPtr<Gfx::Bitmap>, DeprecatedString name); + static ErrorOr<NonnullRefPtr<Layer>> create_snapshot(Image&, Layer const&); ~Layer() = default; @@ -70,7 +70,7 @@ public: Optional<Gfx::IntRect> nonempty_content_bounding_rect() const; - ErrorOr<void> try_set_bitmaps(NonnullRefPtr<Gfx::Bitmap> content, RefPtr<Gfx::Bitmap> mask); + ErrorOr<void> set_bitmaps(NonnullRefPtr<Gfx::Bitmap> content, RefPtr<Gfx::Bitmap> mask); void did_modify_bitmap(Gfx::IntRect const& = {}, NotifyClients notify_clients = NotifyClients::Yes); @@ -83,7 +83,7 @@ public: int opacity_percent() const { return m_opacity_percent; } void set_opacity_percent(int); - RefPtr<Gfx::Bitmap> try_copy_bitmap(Selection const&) const; + RefPtr<Gfx::Bitmap> copy_bitmap(Selection const&) const; Image const& image() const { return m_image; } |