mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
kernel/handle-table: In-class initialize data members
Directly initializes members where applicable.
This commit is contained in:
parent
0220862ba5
commit
4f8cd74061
2 changed files with 2 additions and 3 deletions
|
@ -23,7 +23,6 @@ constexpr u16 GetGeneration(Handle handle) {
|
|||
} // Anonymous namespace
|
||||
|
||||
HandleTable::HandleTable() {
|
||||
next_generation = 1;
|
||||
Clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -107,10 +107,10 @@ private:
|
|||
* Global counter of the number of created handles. Stored in `generations` when a handle is
|
||||
* created, and wraps around to 1 when it hits 0x8000.
|
||||
*/
|
||||
u16 next_generation;
|
||||
u16 next_generation = 1;
|
||||
|
||||
/// Head of the free slots linked list.
|
||||
u16 next_free_slot;
|
||||
u16 next_free_slot = 0;
|
||||
};
|
||||
|
||||
} // namespace Kernel
|
||||
|
|
Loading…
Reference in a new issue