mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
Kernel: Declare type aliases with "using" instead of "typedef"
This is the idiomatic way to declare type aliases in modern C++. Flagged by Sonar Cloud as a "Code Smell", but I happen to agree with this particular one. :^)
This commit is contained in:
committed by
Linus Groh
parent
7463eb52e8
commit
9d1b27263f
@@ -159,7 +159,7 @@ struct KmallocGlobalHeap {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
typedef ExpandableHeap<CHUNK_SIZE, KMALLOC_SCRUB_BYTE, KFREE_SCRUB_BYTE, ExpandGlobalHeap> HeapType;
|
||||
using HeapType = ExpandableHeap<CHUNK_SIZE, KMALLOC_SCRUB_BYTE, KFREE_SCRUB_BYTE, ExpandGlobalHeap>;
|
||||
|
||||
HeapType m_heap;
|
||||
NonnullOwnPtrVector<Memory::Region> m_subheap_memory;
|
||||
|
||||
Reference in New Issue
Block a user