1
Fork 0
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:
Timothy Flynn 2023-07-07 22:48:11 -04:00 committed by Linus Groh
parent aff81d318b
commit c911781c21
243 changed files with 483 additions and 481 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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;

View file

@ -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)
{

View file

@ -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
{

View file

@ -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)
{

View file

@ -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; }

View file

@ -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);

View file

@ -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;

View file

@ -54,7 +54,7 @@ public:
TreeNode& root()
{
return m_root;
};
}
private:
Tree(DeprecatedString root_name)

View file

@ -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()

View file

@ -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;

View file

@ -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)
{