mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibGUI+PixelPaint: Move virtual destructors out-of-line for Clang 17
This commit is contained in:
parent
fa43321938
commit
8366c9f55a
Notes:
sideshowbarker
2024-07-17 00:37:23 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/8366c9f55a Pull-request: https://github.com/SerenityOS/serenity/pull/23960 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/DanShaders Reviewed-by: https://github.com/alimpfard
8 changed files with 12 additions and 4 deletions
|
@ -64,6 +64,8 @@ LayerPropertiesWidget::LayerPropertiesWidget()
|
|||
};
|
||||
}
|
||||
|
||||
LayerPropertiesWidget::~LayerPropertiesWidget() = default;
|
||||
|
||||
void LayerPropertiesWidget::set_layer(Layer* layer)
|
||||
{
|
||||
if (m_layer == layer)
|
||||
|
|
|
@ -17,7 +17,7 @@ class LayerPropertiesWidget final : public GUI::Widget {
|
|||
C_OBJECT(LayerPropertiesWidget);
|
||||
|
||||
public:
|
||||
virtual ~LayerPropertiesWidget() override = default;
|
||||
virtual ~LayerPropertiesWidget() override;
|
||||
|
||||
void set_layer(Layer*);
|
||||
|
||||
|
|
|
@ -140,6 +140,8 @@ PaletteWidget::PaletteWidget()
|
|||
display_color_list(result.value());
|
||||
}
|
||||
|
||||
PaletteWidget::~PaletteWidget() = default;
|
||||
|
||||
void PaletteWidget::set_image_editor(ImageEditor* editor)
|
||||
{
|
||||
m_editor = editor;
|
||||
|
|
|
@ -22,7 +22,7 @@ class PaletteWidget final : public GUI::Frame {
|
|||
C_OBJECT(PaletteWidget);
|
||||
|
||||
public:
|
||||
virtual ~PaletteWidget() override = default;
|
||||
virtual ~PaletteWidget() override;
|
||||
|
||||
void set_primary_color(Color);
|
||||
void set_secondary_color(Color);
|
||||
|
|
|
@ -26,6 +26,8 @@ ToolPropertiesWidget::ToolPropertiesWidget()
|
|||
m_error_label->set_enabled(false);
|
||||
}
|
||||
|
||||
ToolPropertiesWidget::~ToolPropertiesWidget() = default;
|
||||
|
||||
void ToolPropertiesWidget::set_active_tool(Tool* tool)
|
||||
{
|
||||
if (tool == m_active_tool)
|
||||
|
|
|
@ -20,7 +20,7 @@ class ToolPropertiesWidget final : public GUI::Widget {
|
|||
C_OBJECT(ToolPropertiesWidget);
|
||||
|
||||
public:
|
||||
virtual ~ToolPropertiesWidget() override = default;
|
||||
virtual ~ToolPropertiesWidget() override;
|
||||
|
||||
void set_active_tool(Tool*);
|
||||
|
||||
|
|
|
@ -50,6 +50,8 @@ MultiView::MultiView()
|
|||
set_view_mode(ViewMode::Icon);
|
||||
}
|
||||
|
||||
MultiView::~MultiView() = default;
|
||||
|
||||
void MultiView::set_view_mode(ViewMode mode)
|
||||
{
|
||||
if (m_view_mode == mode)
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace GUI {
|
|||
class MultiView final : public GUI::StackWidget {
|
||||
C_OBJECT(MultiView)
|
||||
public:
|
||||
virtual ~MultiView() override = default;
|
||||
virtual ~MultiView() override;
|
||||
|
||||
Function<void()> on_selection_change;
|
||||
Function<void(ModelIndex const&)> on_activation;
|
||||
|
|
Loading…
Reference in a new issue