diff --git a/Kernel/Devices/AsyncDeviceRequest.h b/Kernel/Devices/AsyncDeviceRequest.h index 5d7746c6df..07e581fb1f 100644 --- a/Kernel/Devices/AsyncDeviceRequest.h +++ b/Kernel/Devices/AsyncDeviceRequest.h @@ -143,7 +143,7 @@ private: RequestResult m_result { Pending }; IntrusiveListNode> m_list_node; - typedef IntrusiveList, &AsyncDeviceRequest::m_list_node> AsyncDeviceSubRequestList; + using AsyncDeviceSubRequestList = IntrusiveList, &AsyncDeviceRequest::m_list_node>; AsyncDeviceSubRequestList m_sub_requests_pending; AsyncDeviceSubRequestList m_sub_requests_complete; diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h index 03f38e8c42..725d7d5d64 100644 --- a/Kernel/Heap/Heap.h +++ b/Kernel/Heap/Heap.h @@ -176,8 +176,8 @@ class ExpandableHeap { AK_MAKE_NONMOVABLE(ExpandableHeap); public: - typedef ExpandHeap ExpandHeapType; - typedef Heap HeapType; + using ExpandHeapType = ExpandHeap; + using HeapType = Heap; struct SubHeap { HeapType heap; diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp index 500efef438..2758c3fedc 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -159,7 +159,7 @@ struct KmallocGlobalHeap { return false; } }; - typedef ExpandableHeap HeapType; + using HeapType = ExpandableHeap; HeapType m_heap; NonnullOwnPtrVector m_subheap_memory; diff --git a/Kernel/Locking/Mutex.h b/Kernel/Locking/Mutex.h index 068daa4635..93c1e615b2 100644 --- a/Kernel/Locking/Mutex.h +++ b/Kernel/Locking/Mutex.h @@ -69,7 +69,7 @@ public: } private: - typedef IntrusiveList, &Thread::m_blocked_threads_list_node> BlockedThreadList; + using BlockedThreadList = IntrusiveList, &Thread::m_blocked_threads_list_node>; ALWAYS_INLINE BlockedThreadList& thread_list_for_mode(Mode mode) { diff --git a/Kernel/Process.h b/Kernel/Process.h index 419c13eaa4..3540075172 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -80,7 +80,7 @@ enum class VeilState { Locked, }; -typedef HashMap> FutexQueues; +using FutexQueues = HashMap>; struct LoadResult; diff --git a/Kernel/TTY/VirtualConsole.h b/Kernel/TTY/VirtualConsole.h index 0ff0dbeb14..0aa58d1402 100644 --- a/Kernel/TTY/VirtualConsole.h +++ b/Kernel/TTY/VirtualConsole.h @@ -130,7 +130,7 @@ private: Cell& cell_at(size_t column, size_t row); - typedef Vector ParamVector; + using ParamVector = Vector; void on_code_point(u32); diff --git a/Kernel/Thread.h b/Kernel/Thread.h index b5e24cdeb9..7e9a6f1206 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -680,7 +680,7 @@ public: BlockFlags unblocked_flags { BlockFlags::None }; }; - typedef Vector FDVector; + using FDVector = Vector; explicit SelectBlocker(FDVector&); virtual ~SelectBlocker();