mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04: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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
|
@ -18,7 +18,7 @@ class Tray : public GUI::Frame {
|
|||
public:
|
||||
virtual ~Tray() override = default;
|
||||
|
||||
size_t add_item(DeprecatedString text, RefPtr<Gfx::Bitmap>, DeprecatedString custom_data);
|
||||
size_t add_item(DeprecatedString text, RefPtr<Gfx::Bitmap const>, DeprecatedString custom_data);
|
||||
|
||||
void set_item_checked(size_t index, bool);
|
||||
|
||||
|
@ -39,7 +39,7 @@ private:
|
|||
|
||||
struct Item {
|
||||
DeprecatedString text;
|
||||
RefPtr<Gfx::Bitmap> bitmap;
|
||||
RefPtr<Gfx::Bitmap const> bitmap;
|
||||
DeprecatedString custom_data;
|
||||
size_t index { 0 };
|
||||
Gfx::IntRect rect(Tray const&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue