mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +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) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2023, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
|
@ -229,7 +229,7 @@ public:
|
|||
Gfx::Bitmap const* bitmap() const { return m_bitmap; }
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
};
|
||||
|
||||
class WMWorkspaceChangedEvent : public WMEvent {
|
||||
|
@ -477,7 +477,7 @@ private:
|
|||
|
||||
class DropEvent final : public Event {
|
||||
public:
|
||||
DropEvent(Gfx::IntPoint, DeprecatedString const& text, NonnullRefPtr<Core::MimeData> mime_data);
|
||||
DropEvent(Gfx::IntPoint, DeprecatedString const& text, NonnullRefPtr<Core::MimeData const> mime_data);
|
||||
|
||||
~DropEvent() = default;
|
||||
|
||||
|
@ -488,7 +488,7 @@ public:
|
|||
private:
|
||||
Gfx::IntPoint m_position;
|
||||
DeprecatedString m_text;
|
||||
NonnullRefPtr<Core::MimeData> m_mime_data;
|
||||
NonnullRefPtr<Core::MimeData const> m_mime_data;
|
||||
};
|
||||
|
||||
class ThemeChangeEvent final : public Event {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue