Przeglądaj źródła

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.
Gunnar Beutner 4 lat temu
rodzic
commit
d954c11f66

+ 1 - 0
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 {

+ 1 - 0
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)

+ 1 - 0
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>

+ 1 - 1
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>

+ 1 - 0
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>

+ 1 - 0
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>

+ 1 - 0
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>

+ 1 - 0
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>

+ 1 - 0
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>

+ 1 - 1
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>

+ 1 - 0
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>

+ 1 - 0
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>