mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Everywhere: Remove needless trailing semi-colons after functions
This is a new option in clang-format-16.
This commit is contained in:
parent
aff81d318b
commit
c911781c21
243 changed files with 483 additions and 481 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
void show_tooltip(DeprecatedString, Widget const* tooltip_source_widget);
|
||||
void show_tooltip_immediately(DeprecatedString, Widget const* tooltip_source_widget);
|
||||
void hide_tooltip();
|
||||
Widget const* tooltip_source_widget() { return m_tooltip_source_widget; };
|
||||
Widget const* tooltip_source_widget() { return m_tooltip_source_widget; }
|
||||
|
||||
bool quit_when_last_window_deleted() const { return m_quit_when_last_window_deleted; }
|
||||
void set_quit_when_last_window_deleted(bool b) { m_quit_when_last_window_deleted = b; }
|
||||
|
|
|
@ -52,7 +52,7 @@ void ColorInput::set_color_internal(Color color, AllowCallback allow_callback, b
|
|||
void ColorInput::set_color(Color color, AllowCallback allow_callback)
|
||||
{
|
||||
set_color_internal(color, allow_callback, true);
|
||||
};
|
||||
}
|
||||
|
||||
void ColorInput::mousedown_event(MouseEvent& event)
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
RefPtr<Gfx::Bitmap> wallpaper_bitmap() const;
|
||||
bool set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<StringView> path);
|
||||
|
||||
void set_system_effects(Vector<bool> effects) { m_system_effects = { effects }; };
|
||||
void set_system_effects(Vector<bool> effects) { m_system_effects = { effects }; }
|
||||
SystemEffects const& system_effects() const { return m_system_effects; }
|
||||
|
||||
Gfx::IntRect rect() const { return m_bounding_rect; }
|
||||
|
|
|
@ -306,7 +306,7 @@ EditingEngine::DidMoveALine EditingEngine::move_one_up(KeyEvent const& event)
|
|||
m_editor->set_cursor(new_cursor);
|
||||
}
|
||||
return DidMoveALine::No;
|
||||
};
|
||||
}
|
||||
|
||||
EditingEngine::DidMoveALine EditingEngine::move_one_down(KeyEvent const& event)
|
||||
{
|
||||
|
@ -323,7 +323,7 @@ EditingEngine::DidMoveALine EditingEngine::move_one_down(KeyEvent const& event)
|
|||
m_editor->set_cursor(new_cursor);
|
||||
}
|
||||
return DidMoveALine::No;
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::move_up(double page_height_factor)
|
||||
{
|
||||
|
@ -333,7 +333,7 @@ void EditingEngine::move_up(double page_height_factor)
|
|||
TextPosition new_cursor = m_editor->text_position_at_content_position(position_above);
|
||||
m_editor->set_cursor(new_cursor);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::move_down(double page_height_factor)
|
||||
{
|
||||
|
@ -348,22 +348,22 @@ void EditingEngine::move_down(double page_height_factor)
|
|||
void EditingEngine::move_page_up()
|
||||
{
|
||||
move_up(1);
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::move_page_down()
|
||||
{
|
||||
move_down(1);
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::move_to_first_line()
|
||||
{
|
||||
m_editor->set_cursor(0, 0);
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::move_to_last_line()
|
||||
{
|
||||
m_editor->set_cursor(m_editor->line_count() - 1, m_editor->lines()[m_editor->line_count() - 1]->length());
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::get_selection_line_boundaries(Badge<MoveLineUpOrDownCommand>, size_t& first_line, size_t& last_line)
|
||||
{
|
||||
|
@ -389,14 +389,14 @@ void EditingEngine::delete_char()
|
|||
if (!m_editor->is_editable())
|
||||
return;
|
||||
m_editor->do_delete();
|
||||
};
|
||||
}
|
||||
|
||||
void EditingEngine::delete_line()
|
||||
{
|
||||
if (!m_editor->is_editable())
|
||||
return;
|
||||
m_editor->delete_current_line();
|
||||
};
|
||||
}
|
||||
|
||||
MoveLineUpOrDownCommand::MoveLineUpOrDownCommand(TextDocument& document, KeyEvent event, EditingEngine& engine)
|
||||
: TextDocumentUndoCommand(document)
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
virtual ~FilteringProxyModel() override
|
||||
{
|
||||
m_model->unregister_client(*this);
|
||||
};
|
||||
}
|
||||
|
||||
virtual int row_count(ModelIndex const& = ModelIndex()) const override;
|
||||
virtual int column_count(ModelIndex const& = ModelIndex()) const override;
|
||||
|
|
|
@ -102,9 +102,9 @@ public:
|
|||
int uniform_tab_width() const;
|
||||
|
||||
void set_bar_visible(bool bar_visible);
|
||||
bool is_bar_visible() const { return m_bar_visible; };
|
||||
bool is_bar_visible() const { return m_bar_visible; }
|
||||
|
||||
void set_close_button_enabled(bool close_button_enabled) { m_close_button_enabled = close_button_enabled; };
|
||||
void set_close_button_enabled(bool close_button_enabled) { m_close_button_enabled = close_button_enabled; }
|
||||
bool close_button_enabled() const { return m_close_button_enabled; }
|
||||
|
||||
void set_reorder_allowed(bool reorder_allowed) { m_reorder_allowed = reorder_allowed; }
|
||||
|
|
|
@ -1364,7 +1364,7 @@ void TextEditor::add_code_point(u32 code_point)
|
|||
m_autocomplete_timer->start();
|
||||
}
|
||||
insert_at_cursor_or_replace_selection(sb.to_deprecated_string());
|
||||
};
|
||||
}
|
||||
|
||||
void TextEditor::reset_cursor_blink()
|
||||
{
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
void set_automatic_indentation_enabled(bool enabled) { m_automatic_indentation_enabled = enabled; }
|
||||
|
||||
virtual int soft_tab_width() const final { return m_soft_tab_width; }
|
||||
void set_soft_tab_width(int width) { m_soft_tab_width = width; };
|
||||
void set_soft_tab_width(int width) { m_soft_tab_width = width; }
|
||||
|
||||
WrappingMode wrapping_mode() const { return m_wrapping_mode; }
|
||||
bool is_wrapping_enabled() const { return m_wrapping_mode != WrappingMode::NoWrap; }
|
||||
|
@ -221,7 +221,7 @@ public:
|
|||
|
||||
bool is_in_drag_select() const { return m_in_drag_select; }
|
||||
|
||||
TextRange& selection() { return m_selection; };
|
||||
TextRange& selection() { return m_selection; }
|
||||
void did_update_selection();
|
||||
void did_change(AllowCallback = AllowCallback::Yes);
|
||||
void update_cursor();
|
||||
|
@ -308,8 +308,8 @@ private:
|
|||
// ^Syntax::HighlighterClient
|
||||
virtual Vector<TextDocumentSpan> const& spans() const final { return document().spans(); }
|
||||
virtual void set_span_at_index(size_t index, TextDocumentSpan span) final { document().set_span_at_index(index, move(span)); }
|
||||
virtual Vector<GUI::TextDocumentFoldingRegion>& folding_regions() final { return document().folding_regions(); };
|
||||
virtual Vector<GUI::TextDocumentFoldingRegion> const& folding_regions() const final { return document().folding_regions(); };
|
||||
virtual Vector<GUI::TextDocumentFoldingRegion>& folding_regions() final { return document().folding_regions(); }
|
||||
virtual Vector<GUI::TextDocumentFoldingRegion> const& folding_regions() const final { return document().folding_regions(); }
|
||||
virtual void highlighter_did_request_update() final { update(); }
|
||||
virtual DeprecatedString highlighter_did_request_text() const final { return text(); }
|
||||
virtual GUI::TextDocument& highlighter_did_request_document() final { return document(); }
|
||||
|
|
|
@ -1371,7 +1371,7 @@ void VimEditingEngine::switch_to_normal_mode()
|
|||
m_previous_key = {};
|
||||
clear_visual_mode_data();
|
||||
m_motion.reset();
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::switch_to_insert_mode()
|
||||
{
|
||||
|
@ -1380,7 +1380,7 @@ void VimEditingEngine::switch_to_insert_mode()
|
|||
m_previous_key = {};
|
||||
clear_visual_mode_data();
|
||||
m_motion.reset();
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::switch_to_visual_mode()
|
||||
{
|
||||
|
@ -1448,12 +1448,12 @@ void VimEditingEngine::clear_visual_mode_data()
|
|||
void VimEditingEngine::move_half_page_up()
|
||||
{
|
||||
move_up(0.5);
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::move_half_page_down()
|
||||
{
|
||||
move_down(0.5);
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::yank(YankType type)
|
||||
{
|
||||
|
@ -1544,7 +1544,7 @@ void VimEditingEngine::move_to_previous_empty_lines_block()
|
|||
TextPosition new_cursor = { line_idx, 0 };
|
||||
|
||||
m_editor->set_cursor(new_cursor);
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::move_to_next_empty_lines_block()
|
||||
{
|
||||
|
@ -1564,7 +1564,7 @@ void VimEditingEngine::move_to_next_empty_lines_block()
|
|||
TextPosition new_cursor = { line_idx, 0 };
|
||||
|
||||
m_editor->set_cursor(new_cursor);
|
||||
};
|
||||
}
|
||||
|
||||
void VimEditingEngine::casefold_selection(Casing casing)
|
||||
{
|
||||
|
|
|
@ -200,8 +200,8 @@ public:
|
|||
|
||||
Gfx::IntRect rect() const { return { 0, 0, width(), height() }; }
|
||||
Gfx::IntSize size() const { return m_relative_rect.size(); }
|
||||
Gfx::IntRect content_rect() const { return this->content_margins().applied_to(rect()); };
|
||||
Gfx::IntSize content_size() const { return this->content_rect().size(); };
|
||||
Gfx::IntRect content_rect() const { return this->content_margins().applied_to(rect()); }
|
||||
Gfx::IntSize content_size() const { return this->content_rect().size(); }
|
||||
|
||||
// Invalidate the widget (or an area thereof), causing a repaint to happen soon.
|
||||
void update();
|
||||
|
|
|
@ -18,7 +18,7 @@ class WizardPage : public AbstractWizardPage {
|
|||
|
||||
static ErrorOr<NonnullRefPtr<WizardPage>> create(StringView title, StringView subtitle);
|
||||
|
||||
Widget& body_widget() { return *m_body_widget; };
|
||||
Widget& body_widget() { return *m_body_widget; }
|
||||
|
||||
void set_page_title(String);
|
||||
void set_page_subtitle(String);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue