k_session_request: Turn C-style array into std::array
Makes for stronger typing and allows tooling bounds checks provided by the standard library for debugging purposes.
This commit is contained in:
parent
3968faec06
commit
969387a79a
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
|
||||||
#include "core/hle/kernel/k_auto_object.h"
|
#include "core/hle/kernel/k_auto_object.h"
|
||||||
#include "core/hle/kernel/k_event.h"
|
#include "core/hle/kernel/k_event.h"
|
||||||
#include "core/hle/kernel/k_memory_block.h"
|
#include "core/hle/kernel/k_memory_block.h"
|
||||||
|
@ -148,7 +150,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
KernelCore& kernel;
|
KernelCore& kernel;
|
||||||
Mapping m_static_mappings[NumStaticMappings];
|
std::array<Mapping, NumStaticMappings> m_static_mappings;
|
||||||
Mapping* m_mappings{};
|
Mapping* m_mappings{};
|
||||||
u8 m_num_send{};
|
u8 m_num_send{};
|
||||||
u8 m_num_recv{};
|
u8 m_num_recv{};
|
||||||
|
|
Reference in New Issue