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:
parent
c6dd3377ee
commit
35456f035c
4 changed files with 19 additions and 31 deletions
|
@ -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*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue