mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:17:35 +00:00
LibCore: Add a forward declaration header
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph.
This commit is contained in:
parent
3bbf4610d2
commit
8f7333f080
35 changed files with 143 additions and 38 deletions
|
@ -26,19 +26,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/Function.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/IntrusiveList.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/NonnullRefPtrVector.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/Weakable.h>
|
||||
|
||||
namespace AK {
|
||||
class JsonObject;
|
||||
}
|
||||
#include <LibCore/Forward.h>
|
||||
|
||||
namespace Core {
|
||||
|
||||
|
@ -47,12 +41,6 @@ enum class TimerShouldFireWhenNotVisible {
|
|||
Yes
|
||||
};
|
||||
|
||||
class ChildEvent;
|
||||
class CustomEvent;
|
||||
class Event;
|
||||
class EventLoop;
|
||||
class TimerEvent;
|
||||
|
||||
#define C_OBJECT(klass) \
|
||||
public: \
|
||||
virtual const char* class_name() const override { return #klass; } \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue