From 1e7adf5cb632331fca3532342a18a190325d6746 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Thu, 21 Jan 2021 20:23:52 +0100 Subject: [PATCH] LibGUI: Resolve cyclic inclusion Application.h includes Widget.h which includes Application.h. I'm not entirely sure what the semantics are in this case, but avoiding this seems to be the safer approach. In this case, Widget does not actually use Application, so let's just remove the unused include. --- Userland/Applications/Run/main.cpp | 1 + Userland/Demos/CatDog/main.cpp | 1 + Userland/Libraries/LibGUI/Widget.h | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/Run/main.cpp b/Userland/Applications/Run/main.cpp index 9bf27a3535..9efea6415f 100644 --- a/Userland/Applications/Run/main.cpp +++ b/Userland/Applications/Run/main.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include "RunWindow.h" diff --git a/Userland/Demos/CatDog/main.cpp b/Userland/Demos/CatDog/main.cpp index e93b258388..769cb69d3f 100644 --- a/Userland/Demos/CatDog/main.cpp +++ b/Userland/Demos/CatDog/main.cpp @@ -26,6 +26,7 @@ */ #include +#include #include #include #include diff --git a/Userland/Libraries/LibGUI/Widget.h b/Userland/Libraries/LibGUI/Widget.h index 1f14ef14d4..03dafc6a33 100644 --- a/Userland/Libraries/LibGUI/Widget.h +++ b/Userland/Libraries/LibGUI/Widget.h @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include