1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

PixelPaint: Make ImageEditor::image() return a reference (Image&)

In the new tabbed world, every ImageEditor always has an associated
Image, so this simplifies a bunch of things. :^)
This commit is contained in:
Andreas Kling 2021-06-15 21:35:04 +02:00
parent c6dd3377ee
commit 35456f035c
4 changed files with 19 additions and 31 deletions

View file

@ -25,8 +25,8 @@ class ImageEditor final
public:
virtual ~ImageEditor() override;
Image const* image() const { return m_image; }
Image* image() { return m_image; }
Image const& image() const { return m_image; }
Image& image() { return m_image; }
Layer* active_layer() { return m_active_layer; }
void set_active_layer(Layer*);