Everywhere: Define even more destructors out of line

You guessed it, this fixes compilation with LLVM trunk.
This commit is contained in:
Dan Klishch 2024-06-29 21:39:04 -04:00 committed by Nico Weber
parent c03cca7b2f
commit 2360df3ab8
8 changed files with 14 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/Error.h>
#include <AK/OwnPtr.h>
#include <AK/Stream.h>

View file

@ -88,6 +88,8 @@ FunctionDefinition::FunctionDefinition(Declaration&& declaration, Location locat
{
}
FunctionDefinition::~FunctionDefinition() = default;
void FunctionDefinition::reindex_ssa_variables()
{
size_t index = 0;

View file

@ -139,6 +139,7 @@ private:
class FunctionDefinition : public FunctionDeclaration {
public:
FunctionDefinition(Declaration&& declaration, Location location, Tree ast);
~FunctionDefinition();
void reindex_ssa_variables();

View file

@ -13,6 +13,7 @@
#include <AK/Forward.h>
#include <AK/Span.h>
#include <LibCore/File.h>
#include <LibCore/Socket.h>
namespace Core {

View file

@ -20,6 +20,8 @@ DropEvent::DropEvent(Gfx::IntPoint position, ByteString const& text, NonnullRefP
{
}
DropEvent::~DropEvent() = default;
ByteString KeyEvent::to_byte_string() const
{
Vector<ByteString, 8> parts;
@ -53,4 +55,6 @@ ActionEvent::ActionEvent(Type type, Action& action)
{
}
ActionEvent::~ActionEvent() = default;
}

View file

@ -503,7 +503,7 @@ class DropEvent final : public Event {
public:
DropEvent(Gfx::IntPoint, ByteString const& text, NonnullRefPtr<Core::MimeData const> mime_data);
~DropEvent() = default;
~DropEvent();
Gfx::IntPoint position() const { return m_position; }
ByteString const& text() const { return m_text; }
@ -579,7 +579,7 @@ private:
class ActionEvent final : public Event {
public:
ActionEvent(Type, Action&);
~ActionEvent() = default;
~ActionEvent();
Action const& action() const { return *m_action; }
Action& action() { return *m_action; }

View file

@ -31,6 +31,8 @@ HeaderView::HeaderView(AbstractTableView& table_view, Gfx::Orientation orientati
}
}
HeaderView::~HeaderView() = default;
void HeaderView::set_section_size(int section, int size)
{
auto& data = section_data(section);

View file

@ -16,7 +16,7 @@ class HeaderView final : public Widget {
C_OBJECT(HeaderView);
public:
virtual ~HeaderView() override = default;
virtual ~HeaderView() override;
Gfx::Orientation orientation() const { return m_orientation; }