diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-14 22:29:06 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-14 23:31:18 +0100 |
commit | 8f7333f080c8f114e97e84323dfdb7e09cf30083 (patch) | |
tree | e31db910ce1fe81413035c6e604d144e7e32c654 /Userland | |
parent | 3bbf4610d24c0dd8f8f1d0b962259c1f7e067a2d (diff) | |
download | serenity-8f7333f080c8f114e97e84323dfdb7e09cf30083.zip |
LibCore: Add a forward declaration header
This patch adds <LibCore/Forward.h> and uses it in various places to
shrink the header dependency graph.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/dmesg.cpp | 1 | ||||
-rw-r--r-- | Userland/html.cpp | 1 | ||||
-rw-r--r-- | Userland/man.cpp | 1 | ||||
-rw-r--r-- | Userland/md.cpp | 4 | ||||
-rw-r--r-- | Userland/tail.cpp | 1 |
5 files changed, 7 insertions, 1 deletions
diff --git a/Userland/dmesg.cpp b/Userland/dmesg.cpp index 013bb74c17..f116e3a3c5 100644 --- a/Userland/dmesg.cpp +++ b/Userland/dmesg.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/ByteBuffer.h> #include <LibCore/File.h> #include <assert.h> #include <fcntl.h> diff --git a/Userland/html.cpp b/Userland/html.cpp index 5e0594763a..67ae7a89f1 100644 --- a/Userland/html.cpp +++ b/Userland/html.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/ByteBuffer.h> #include <LibCore/File.h> #include <LibGUI/AboutDialog.h> #include <LibGUI/Action.h> diff --git a/Userland/man.cpp b/Userland/man.cpp index 528b41bb72..1c31ddce5b 100644 --- a/Userland/man.cpp +++ b/Userland/man.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/ByteBuffer.h> #include <AK/String.h> #include <LibCore/File.h> #include <LibMarkdown/MDDocument.h> diff --git a/Userland/md.cpp b/Userland/md.cpp index 49f938590e..50297ba47a 100644 --- a/Userland/md.cpp +++ b/Userland/md.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/ByteBuffer.h> #include <AK/String.h> #include <LibCore/File.h> #include <LibMarkdown/MDDocument.h> @@ -45,7 +46,8 @@ int main(int argc, char* argv[]) else file_name = argv[i]; - auto file = Core::File::construct();; + auto file = Core::File::construct(); + ; bool success; if (file_name == nullptr) { success = file->open(STDIN_FILENO, Core::IODevice::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescription::No); diff --git a/Userland/tail.cpp b/Userland/tail.cpp index 2d0acde35b..72d92ab991 100644 --- a/Userland/tail.cpp +++ b/Userland/tail.cpp @@ -25,6 +25,7 @@ */ #include <AK/Assertions.h> +#include <AK/ByteBuffer.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> #include <errno.h> |