From 3adf01b816162f044dc7888d06dbdf6f2ab0bc47 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 2 Jan 2024 20:18:48 -0500 Subject: [PATCH] LibIPC: Move MessageBuffer forward declaration from Stub.h to Forward.h The type of MessageBuffer will be changing, and it was a bit awkward to look around to find where the forward declaration was. This patch just moves it to the obvious forwarding header. --- Userland/Libraries/LibIPC/Forward.h | 1 + Userland/Libraries/LibIPC/Stub.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibIPC/Forward.h b/Userland/Libraries/LibIPC/Forward.h index 451961bb326..6be4a6197dd 100644 --- a/Userland/Libraries/LibIPC/Forward.h +++ b/Userland/Libraries/LibIPC/Forward.h @@ -13,6 +13,7 @@ namespace IPC { class Decoder; class Encoder; class Message; +struct MessageBuffer; class File; class Stub; diff --git a/Userland/Libraries/LibIPC/Stub.h b/Userland/Libraries/LibIPC/Stub.h index 7579f229f6e..e6306f2d9fd 100644 --- a/Userland/Libraries/LibIPC/Stub.h +++ b/Userland/Libraries/LibIPC/Stub.h @@ -9,6 +9,7 @@ #include #include +#include namespace AK { class BufferStream; @@ -16,9 +17,6 @@ class BufferStream; namespace IPC { -class Message; -struct MessageBuffer; - class Stub { public: virtual ~Stub() = default;