diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-11 13:27:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-11 22:51:10 +0200 |
commit | 29e80178a8b16fe80b489b886d8cd7b6df5f8999 (patch) | |
tree | 537f85430e2193523ad6e423e02a9208042c1ac3 /Userland/Applications/PixelPaint/Image.h | |
parent | 242742b6c208ae65a55ad714c2b7242636f056a0 (diff) | |
download | serenity-29e80178a8b16fe80b489b886d8cd7b6df5f8999.zip |
PixelPaint: Convert to east-const style
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Image.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/PixelPaint/Image.h b/Userland/Applications/PixelPaint/Image.h index b75cb106b1..5aaebb1c05 100644 --- a/Userland/Applications/PixelPaint/Image.h +++ b/Userland/Applications/PixelPaint/Image.h @@ -41,10 +41,10 @@ public: static RefPtr<Image> create_from_bitmap(RefPtr<Gfx::Bitmap> bitmap); size_t layer_count() const { return m_layers.size(); } - const Layer& layer(size_t index) const { return m_layers.at(index); } + Layer const& layer(size_t index) const { return m_layers.at(index); } Layer& layer(size_t index) { return m_layers.at(index); } - const Gfx::IntSize& size() const { return m_size; } + Gfx::IntSize const& size() const { return m_size; } Gfx::IntRect rect() const { return { {}, m_size }; } void add_layer(NonnullRefPtr<Layer>); @@ -70,10 +70,10 @@ public: void layer_did_modify_bitmap(Badge<Layer>, Layer const&); void layer_did_modify_properties(Badge<Layer>, Layer const&); - size_t index_of(const Layer&) const; + size_t index_of(Layer const&) const; private: - explicit Image(const Gfx::IntSize&); + explicit Image(Gfx::IntSize const&); static RefPtr<Image> create_from_pixel_paint_file(String const& file_path); |