mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGUI: Fix const-correctness issues
This commit is contained in:
parent
bfe081caad
commit
faa1a09042
44 changed files with 180 additions and 183 deletions
|
@ -19,7 +19,6 @@ public:
|
|||
virtual ~ImageWidget() override = default;
|
||||
|
||||
void set_bitmap(Gfx::Bitmap const*);
|
||||
Gfx::Bitmap* bitmap() { return m_bitmap.ptr(); }
|
||||
Gfx::Bitmap const* bitmap() const { return m_bitmap.ptr(); }
|
||||
|
||||
void set_should_stretch(bool value) { m_should_stretch = value; }
|
||||
|
@ -43,7 +42,7 @@ protected:
|
|||
virtual void paint_event(PaintEvent&) override;
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
bool m_should_stretch { false };
|
||||
bool m_auto_resize { false };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue