mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:07: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
|
@ -38,7 +38,7 @@ public:
|
|||
void toggle_rotate_y() { m_rotate_y = !m_rotate_y; }
|
||||
void toggle_rotate_z() { m_rotate_z = !m_rotate_z; }
|
||||
void set_rotation_speed(float speed) { m_rotation_speed = speed; }
|
||||
void set_stat_label(RefPtr<GUI::Label> l) { m_stats = l; };
|
||||
void set_stat_label(RefPtr<GUI::Label> l) { m_stats = l; }
|
||||
void set_wrap_s_mode(GLint mode) { m_wrap_s_mode = mode; }
|
||||
void set_wrap_t_mode(GLint mode) { m_wrap_t_mode = mode; }
|
||||
void set_texture_scale(float scale) { m_texture_scale = scale; }
|
||||
|
@ -168,7 +168,7 @@ void GLContextWidget::resize_event(GUI::ResizeEvent& event)
|
|||
|
||||
if (m_stats)
|
||||
m_stats->set_x(width() - m_stats->width() - 6);
|
||||
};
|
||||
}
|
||||
|
||||
void GLContextWidget::mousemove_event(GUI::MouseEvent& event)
|
||||
{
|
||||
|
|
|
@ -96,7 +96,7 @@ void AnalogClock::draw_hand(GUI::Painter& painter, double angle, double length,
|
|||
painter.draw_line(left_wing_point, indicator_point, palette().threed_highlight());
|
||||
painter.draw_line(left_wing_point, tail_point, palette().threed_highlight());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void AnalogClock::draw_seconds_hand(GUI::Painter& painter, double angle)
|
||||
{
|
||||
|
|
|
@ -17,9 +17,9 @@ class ElementSizePreviewWidget final : public GUI::AbstractScrollableWidget {
|
|||
C_OBJECT(ElementSizePreviewWidget)
|
||||
|
||||
public:
|
||||
void set_box_model(Web::Layout::BoxModelMetrics box_model) { m_node_box_sizing = box_model; };
|
||||
void set_node_content_height(float height) { m_node_content_height = height; };
|
||||
void set_node_content_width(float width) { m_node_content_width = width; };
|
||||
void set_box_model(Web::Layout::BoxModelMetrics box_model) { m_node_box_sizing = box_model; }
|
||||
void set_node_content_height(float height) { m_node_content_height = height; }
|
||||
void set_node_content_width(float width) { m_node_content_width = width; }
|
||||
|
||||
private:
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace DisplaySettings {
|
|||
static ErrorOr<String> get_color_scheme_name_from_pathname(StringView color_scheme_path)
|
||||
{
|
||||
return TRY(String::from_deprecated_string(color_scheme_path.replace("/res/color-schemes/"sv, ""sv, ReplaceMode::FirstOnly).replace(".ini"sv, ""sv, ReplaceMode::FirstOnly)));
|
||||
};
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<ThemesSettingsWidget>> ThemesSettingsWidget::try_create(bool& background_settings_changed)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
void lock_location(bool);
|
||||
void display_previous_frame();
|
||||
void display_next_frame();
|
||||
RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; };
|
||||
RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; }
|
||||
|
||||
virtual Optional<GUI::UISize> calculated_min_size() const override
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
~TrackManager() = default;
|
||||
|
||||
NonnullRefPtr<DSP::NoteTrack> current_track() { return *m_tracks[m_current_track]; }
|
||||
size_t track_count() { return m_tracks.size(); };
|
||||
size_t track_count() { return m_tracks.size(); }
|
||||
size_t current_track_index() const { return m_current_track; }
|
||||
void set_current_track(size_t track_index)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ public:
|
|||
static NonnullRefPtr<Guide> construct(Orientation orientation, float offset)
|
||||
{
|
||||
return make_ref_counted<Guide>(orientation, offset);
|
||||
};
|
||||
}
|
||||
|
||||
Orientation orientation() const { return m_orientation; }
|
||||
float offset() const { return m_offset; }
|
||||
|
|
|
@ -125,7 +125,7 @@ public:
|
|||
void set_unmodified();
|
||||
void update_modified();
|
||||
Function<void(DeprecatedString)> on_appended_status_info_change;
|
||||
DeprecatedString appended_status_info() { return m_appended_status_info; };
|
||||
DeprecatedString appended_status_info() { return m_appended_status_info; }
|
||||
void set_appended_status_info(DeprecatedString);
|
||||
DeprecatedString generate_unique_layer_name(DeprecatedString const& original_layer_name);
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
virtual StringView tool_name() const = 0;
|
||||
|
||||
// We only set the override_alt_key flag to true since the override is false by default. If false is desired do not call method.
|
||||
virtual bool is_overriding_alt() { return false; };
|
||||
virtual bool is_overriding_alt() { return false; }
|
||||
|
||||
protected:
|
||||
Tool() = default;
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
TreeNode& root()
|
||||
{
|
||||
return m_root;
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
Tree(DeprecatedString root_name)
|
||||
|
|
|
@ -146,7 +146,7 @@ auto CSVImportDialogPage::make_reader() -> Optional<Reader::XSV>
|
|||
behaviors = behaviors | Reader::ParserBehavior::TrimTrailingFieldSpaces;
|
||||
|
||||
return Reader::XSV(m_csv, move(traits), behaviors);
|
||||
};
|
||||
}
|
||||
|
||||
void CSVImportDialogPage::update_preview()
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ public:
|
|||
|
||||
void move_cursor(GUI::AbstractView::CursorMovement);
|
||||
|
||||
NonnullRefPtr<SheetModel> model() { return m_sheet_model; };
|
||||
NonnullRefPtr<SheetModel> model() { return m_sheet_model; }
|
||||
|
||||
private:
|
||||
virtual void hide_event(GUI::HideEvent&) override;
|
||||
|
|
|
@ -26,8 +26,8 @@ class ThreadStackModel final : public GUI::Model {
|
|||
};
|
||||
|
||||
public:
|
||||
int column_count(GUI::ModelIndex const&) const override { return 3; };
|
||||
int row_count(GUI::ModelIndex const&) const override { return m_symbols.size(); };
|
||||
int column_count(GUI::ModelIndex const&) const override { return 3; }
|
||||
int row_count(GUI::ModelIndex const&) const override { return m_symbols.size(); }
|
||||
bool is_column_sortable(int) const override { return false; }
|
||||
|
||||
ErrorOr<String> column_name(int column) const override
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void set_symbols(Vector<Symbolication::Symbol> const& symbols)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue