mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +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:
parent
7463eb52e8
commit
9d1b27263f
7 changed files with 8 additions and 8 deletions
|
@ -176,8 +176,8 @@ class ExpandableHeap {
|
|||
AK_MAKE_NONMOVABLE(ExpandableHeap);
|
||||
|
||||
public:
|
||||
typedef ExpandHeap ExpandHeapType;
|
||||
typedef Heap<CHUNK_SIZE, HEAP_SCRUB_BYTE_ALLOC, HEAP_SCRUB_BYTE_FREE> HeapType;
|
||||
using ExpandHeapType = ExpandHeap;
|
||||
using HeapType = Heap<CHUNK_SIZE, HEAP_SCRUB_BYTE_ALLOC, HEAP_SCRUB_BYTE_FREE>;
|
||||
|
||||
struct SubHeap {
|
||||
HeapType heap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue