summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-19 14:35:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-19 21:36:57 +0200
commitd954c11f6689ae8b1119a76644b546547ee314b7 (patch)
tree98642a9f4982f9280ee0de59111f31a7d43f76d2
parent45a1a7e1e6cb3e88d6f70b161f8b8ada1bded246 (diff)
downloadserenity-d954c11f6689ae8b1119a76644b546547ee314b7.zip
Everywhere: Add missing includes for <AK/OwnPtr.h>
Previously <AK/Function.h> also included <AK/OwnPtr.h>. That's about to change though. This patch fixes a few build problems that will occur when that change happens.
-rw-r--r--AK/Trie.h1
-rw-r--r--Tests/AK/TestHashMap.cpp1
-rw-r--r--Userland/Applications/Debugger/main.cpp1
-rw-r--r--Userland/DevTools/StateMachineGenerator/main.cpp2
-rw-r--r--Userland/Libraries/LibCore/Object.h1
-rw-r--r--Userland/Libraries/LibDebug/DebugInfo.h1
-rw-r--r--Userland/Libraries/LibGUI/Window.h1
-rw-r--r--Userland/Libraries/LibGfx/FontDatabase.h1
-rw-r--r--Userland/Libraries/LibIPC/Message.h1
-rw-r--r--Userland/Libraries/LibLine/Editor.h2
-rw-r--r--Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp1
-rw-r--r--Userland/Utilities/disasm.cpp1
12 files changed, 12 insertions, 2 deletions
diff --git a/AK/Trie.h b/AK/Trie.h
index 449c0821c9..c0e96bd4fd 100644
--- a/AK/Trie.h
+++ b/AK/Trie.h
@@ -8,6 +8,7 @@
#include <AK/Forward.h>
#include <AK/HashMap.h>
+#include <AK/OwnPtr.h>
#include <AK/Types.h>
namespace AK {
diff --git a/Tests/AK/TestHashMap.cpp b/Tests/AK/TestHashMap.cpp
index a057319309..86fc4e98d9 100644
--- a/Tests/AK/TestHashMap.cpp
+++ b/Tests/AK/TestHashMap.cpp
@@ -7,6 +7,7 @@
#include <LibTest/TestCase.h>
#include <AK/HashMap.h>
+#include <AK/OwnPtr.h>
#include <AK/String.h>
TEST_CASE(construct)
diff --git a/Userland/Applications/Debugger/main.cpp b/Userland/Applications/Debugger/main.cpp
index 5af52439a9..3dc881d842 100644
--- a/Userland/Applications/Debugger/main.cpp
+++ b/Userland/Applications/Debugger/main.cpp
@@ -7,6 +7,7 @@
#include <AK/Assertions.h>
#include <AK/ByteBuffer.h>
#include <AK/Demangle.h>
+#include <AK/OwnPtr.h>
#include <AK/StringBuilder.h>
#include <LibC/sys/arch/i386/regs.h>
#include <LibCore/ArgsParser.h>
diff --git a/Userland/DevTools/StateMachineGenerator/main.cpp b/Userland/DevTools/StateMachineGenerator/main.cpp
index d2f5f02892..c0a6321c1d 100644
--- a/Userland/DevTools/StateMachineGenerator/main.cpp
+++ b/Userland/DevTools/StateMachineGenerator/main.cpp
@@ -6,7 +6,7 @@
#include <AK/GenericLexer.h>
#include <AK/HashTable.h>
-#include <AK/NonnullOwnPtr.h>
+#include <AK/OwnPtr.h>
#include <AK/SourceGenerator.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>
diff --git a/Userland/Libraries/LibCore/Object.h b/Userland/Libraries/LibCore/Object.h
index 3de9495a5a..271df32d94 100644
--- a/Userland/Libraries/LibCore/Object.h
+++ b/Userland/Libraries/LibCore/Object.h
@@ -11,6 +11,7 @@
#include <AK/IntrusiveList.h>
#include <AK/Noncopyable.h>
#include <AK/NonnullRefPtrVector.h>
+#include <AK/OwnPtr.h>
#include <AK/String.h>
#include <AK/TypeCasts.h>
#include <AK/Weakable.h>
diff --git a/Userland/Libraries/LibDebug/DebugInfo.h b/Userland/Libraries/LibDebug/DebugInfo.h
index 8ae31a8900..70dcbff8b6 100644
--- a/Userland/Libraries/LibDebug/DebugInfo.h
+++ b/Userland/Libraries/LibDebug/DebugInfo.h
@@ -9,6 +9,7 @@
#include <AK/NonnullOwnPtrVector.h>
#include <AK/NonnullRefPtr.h>
#include <AK/Optional.h>
+#include <AK/OwnPtr.h>
#include <AK/Vector.h>
#include <LibDebug/Dwarf/DIE.h>
#include <LibDebug/Dwarf/DwarfInfo.h>
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h
index 3258287f9e..ad4bd7e3dc 100644
--- a/Userland/Libraries/LibGUI/Window.h
+++ b/Userland/Libraries/LibGUI/Window.h
@@ -7,6 +7,7 @@
#pragma once
#include <AK/Function.h>
+#include <AK/OwnPtr.h>
#include <AK/String.h>
#include <AK/WeakPtr.h>
#include <LibCore/Object.h>
diff --git a/Userland/Libraries/LibGfx/FontDatabase.h b/Userland/Libraries/LibGfx/FontDatabase.h
index cdc0d3fa93..30e239784f 100644
--- a/Userland/Libraries/LibGfx/FontDatabase.h
+++ b/Userland/Libraries/LibGfx/FontDatabase.h
@@ -8,6 +8,7 @@
#include <AK/Function.h>
#include <AK/HashMap.h>
+#include <AK/OwnPtr.h>
#include <AK/String.h>
#include <LibGfx/Forward.h>
#include <LibGfx/Typeface.h>
diff --git a/Userland/Libraries/LibIPC/Message.h b/Userland/Libraries/LibIPC/Message.h
index 48b8cec912..7a8c5e4e56 100644
--- a/Userland/Libraries/LibIPC/Message.h
+++ b/Userland/Libraries/LibIPC/Message.h
@@ -7,6 +7,7 @@
#pragma once
#include <AK/Function.h>
+#include <AK/RefCounted.h>
#include <AK/RefPtr.h>
#include <AK/Vector.h>
#include <unistd.h>
diff --git a/Userland/Libraries/LibLine/Editor.h b/Userland/Libraries/LibLine/Editor.h
index 2bd9636018..2058e2914a 100644
--- a/Userland/Libraries/LibLine/Editor.h
+++ b/Userland/Libraries/LibLine/Editor.h
@@ -11,7 +11,7 @@
#include <AK/ByteBuffer.h>
#include <AK/Function.h>
#include <AK/HashMap.h>
-#include <AK/NonnullOwnPtr.h>
+#include <AK/OwnPtr.h>
#include <AK/QuickSort.h>
#include <AK/Result.h>
#include <AK/String.h>
diff --git a/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp
index c5495beaf2..72fc832e64 100644
--- a/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp
+++ b/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp
@@ -10,6 +10,7 @@
#include <AK/GenericLexer.h>
#include <AK/HashMap.h>
#include <AK/LexicalPath.h>
+#include <AK/OwnPtr.h>
#include <AK/SourceGenerator.h>
#include <AK/StringBuilder.h>
#include <LibCore/ArgsParser.h>
diff --git a/Userland/Utilities/disasm.cpp b/Userland/Utilities/disasm.cpp
index a810c6c5b5..be78eeaaa6 100644
--- a/Userland/Utilities/disasm.cpp
+++ b/Userland/Utilities/disasm.cpp
@@ -6,6 +6,7 @@
#include <AK/Debug.h>
#include <AK/MappedFile.h>
+#include <AK/OwnPtr.h>
#include <AK/QuickSort.h>
#include <AK/Vector.h>
#include <LibCore/ArgsParser.h>