LibGUI+PixelPaint: Move virtual destructors out-of-line for Clang 17

This commit is contained in:
Daniel Bertalan 2023-07-28 16:18:30 +02:00 committed by Andrew Kaster
parent fa43321938
commit 8366c9f55a
Notes: sideshowbarker 2024-07-17 00:37:23 +09:00
8 changed files with 12 additions and 4 deletions

View file

@ -64,6 +64,8 @@ LayerPropertiesWidget::LayerPropertiesWidget()
};
}
LayerPropertiesWidget::~LayerPropertiesWidget() = default;
void LayerPropertiesWidget::set_layer(Layer* layer)
{
if (m_layer == layer)

View file

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

View file

@ -140,6 +140,8 @@ PaletteWidget::PaletteWidget()
display_color_list(result.value());
}
PaletteWidget::~PaletteWidget() = default;
void PaletteWidget::set_image_editor(ImageEditor* editor)
{
m_editor = editor;

View file

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

View file

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

View file

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

View file

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

View file

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