mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Userland: Fix remaining smart pointer const-correctness issues
This commit is contained in:
parent
faa1a09042
commit
33e87d1627
17 changed files with 23 additions and 23 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
class UndoSelection : public RefCounted<UndoSelection> {
|
||||
public:
|
||||
explicit UndoSelection(int const start, int const size, u32 const active_glyph, Gfx::BitmapFont const& font, NonnullRefPtr<GUI::GlyphMapWidget> glyph_map_widget)
|
||||
explicit UndoSelection(int const start, int const size, u32 const active_glyph, Gfx::BitmapFont& font, NonnullRefPtr<GUI::GlyphMapWidget> glyph_map_widget)
|
||||
: m_start(start)
|
||||
, m_size(size)
|
||||
, m_active_glyph(active_glyph)
|
||||
|
|
|
@ -149,7 +149,7 @@ GUI::ModelIndex ManualModel::parent_index(const GUI::ModelIndex& index) const
|
|||
return {};
|
||||
auto children = maybe_children.release_value();
|
||||
for (size_t row = 0; row < children.size(); row++) {
|
||||
Manual::Node* child_at_row = children[row];
|
||||
Manual::Node const* child_at_row = children[row];
|
||||
if (child_at_row == parent)
|
||||
return create_index(row, 0, parent);
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ private:
|
|||
Vector<DeprecatedString> load_files_from_directory(DeprecatedString const& path) const;
|
||||
|
||||
DeprecatedString m_path;
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
Optional<ImageDecoderClient::DecodedImage> m_decoded_image;
|
||||
|
||||
size_t m_current_frame_index { 0 };
|
||||
|
|
|
@ -53,7 +53,7 @@ private:
|
|||
RefPtr<Core::Timer> m_cursor_blink_timer;
|
||||
RefPtr<PixelPaint::TextToolEditor> m_text_editor;
|
||||
Gfx::IntPoint m_add_text_position { 0, 0 };
|
||||
RefPtr<Gfx::Font> m_selected_font;
|
||||
RefPtr<Gfx::Font const> m_selected_font;
|
||||
bool m_text_input_is_active { false };
|
||||
bool m_cursor_blink_state { false };
|
||||
bool m_mouse_is_over_text { false };
|
||||
|
|
|
@ -47,13 +47,13 @@ private:
|
|||
TerminalSettingsViewWidget();
|
||||
void write_back_settings() const;
|
||||
|
||||
RefPtr<Gfx::Font> m_font;
|
||||
RefPtr<Gfx::Font const> m_font;
|
||||
float m_opacity;
|
||||
DeprecatedString m_color_scheme;
|
||||
VT::CursorShape m_cursor_shape { VT::CursorShape::Block };
|
||||
bool m_cursor_is_blinking_set { true };
|
||||
|
||||
RefPtr<Gfx::Font> m_original_font;
|
||||
RefPtr<Gfx::Font const> m_original_font;
|
||||
float m_original_opacity;
|
||||
DeprecatedString m_original_color_scheme;
|
||||
VT::CursorShape m_original_cursor_shape;
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
return gallery;
|
||||
}
|
||||
|
||||
void set_preview_palette(Gfx::Palette const& palette)
|
||||
void set_preview_palette(Gfx::Palette& palette)
|
||||
{
|
||||
set_palette(palette);
|
||||
Function<void(GUI::Widget&)> recurse = [&](GUI::Widget& parent_widget) {
|
||||
|
|
|
@ -26,7 +26,6 @@ public:
|
|||
virtual ~VideoFrameWidget() 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_sizing_mode(VideoSizingMode value) { m_sizing_mode = value; }
|
||||
|
@ -44,7 +43,7 @@ protected:
|
|||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_bitmap;
|
||||
RefPtr<Gfx::Bitmap const> m_bitmap;
|
||||
VideoSizingMode m_sizing_mode { VideoSizingMode::Fit };
|
||||
bool m_auto_resize { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue