From faa1a09042d61724417e78db8283b73f3393f77f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 20 Feb 2023 19:03:44 +0100 Subject: LibGUI: Fix const-correctness issues --- Userland/Libraries/LibGUI/Icon.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Userland/Libraries/LibGUI/Icon.h') diff --git a/Userland/Libraries/LibGUI/Icon.h b/Userland/Libraries/LibGUI/Icon.h index b11cbcf42b..111e0cf7ba 100644 --- a/Userland/Libraries/LibGUI/Icon.h +++ b/Userland/Libraries/LibGUI/Icon.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2023, Andreas Kling * Copyright (c) 2021, Julius Heijmen * Copyright (c) 2022, the SerenityOS developers. * @@ -21,7 +21,7 @@ public: ~IconImpl() = default; Gfx::Bitmap const* bitmap_for_size(int) const; - void set_bitmap_for_size(int, RefPtr&&); + void set_bitmap_for_size(int, RefPtr&&); Vector sizes() const { @@ -33,14 +33,14 @@ public: private: IconImpl() = default; - HashMap> m_bitmaps; + HashMap> m_bitmaps; }; class Icon { public: Icon(); - explicit Icon(RefPtr&&); - explicit Icon(RefPtr&&, RefPtr&&); + explicit Icon(RefPtr&&); + explicit Icon(RefPtr&&, RefPtr&&); explicit Icon(IconImpl const&); Icon(Icon const&); ~Icon() = default; @@ -56,7 +56,7 @@ public: } Gfx::Bitmap const* bitmap_for_size(int size) const { return m_impl->bitmap_for_size(size); } - void set_bitmap_for_size(int size, RefPtr&& bitmap) { m_impl->set_bitmap_for_size(size, move(bitmap)); } + void set_bitmap_for_size(int size, RefPtr&& bitmap) { m_impl->set_bitmap_for_size(size, move(bitmap)); } IconImpl const& impl() const { return *m_impl; } -- cgit v1.2.3