mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +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
|
@ -50,7 +50,8 @@ void EditorWrapper::set_mode_displayable()
|
|||
{
|
||||
editor().set_mode(GUI::TextEditor::Editable);
|
||||
editor().set_background_role(Gfx::ColorRole::Base);
|
||||
editor().set_palette(GUI::Application::the()->palette());
|
||||
auto palette = GUI::Application::the()->palette();
|
||||
editor().set_palette(palette);
|
||||
}
|
||||
|
||||
void EditorWrapper::set_mode_non_displayable()
|
||||
|
|
|
@ -1837,7 +1837,7 @@ void HackStudioWidget::update_history_actions()
|
|||
m_locations_history_forward_action->set_enabled(true);
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Font> HackStudioWidget::read_editor_font_from_config()
|
||||
RefPtr<Gfx::Font const> HackStudioWidget::read_editor_font_from_config()
|
||||
{
|
||||
auto font_family = Config::read_string("HackStudio"sv, "EditorFont"sv, "Family"sv, "Csilla"sv);
|
||||
auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv, "Regular"sv);
|
||||
|
@ -1850,7 +1850,7 @@ RefPtr<Gfx::Font> HackStudioWidget::read_editor_font_from_config()
|
|||
return font;
|
||||
}
|
||||
|
||||
void HackStudioWidget::change_editor_font(RefPtr<Gfx::Font> font)
|
||||
void HackStudioWidget::change_editor_font(RefPtr<Gfx::Font const> font)
|
||||
{
|
||||
m_editor_font = move(font);
|
||||
for (auto& editor_wrapper : m_all_editor_wrappers) {
|
||||
|
|
|
@ -248,9 +248,9 @@ private:
|
|||
RefPtr<GUI::Action> m_toggle_semantic_highlighting_action;
|
||||
RefPtr<GUI::Action> m_open_project_configuration_action;
|
||||
|
||||
RefPtr<Gfx::Font> read_editor_font_from_config();
|
||||
void change_editor_font(RefPtr<Gfx::Font>);
|
||||
RefPtr<Gfx::Font> m_editor_font;
|
||||
RefPtr<Gfx::Font const> read_editor_font_from_config();
|
||||
void change_editor_font(RefPtr<Gfx::Font const>);
|
||||
RefPtr<Gfx::Font const> m_editor_font;
|
||||
RefPtr<GUI::Action> m_editor_font_action;
|
||||
|
||||
GUI::TextEditor::WrappingMode m_wrapping_mode { GUI::TextEditor::NoWrap };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue