summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-10-21 09:44:30 +0200
committerGitHub <noreply@github.com>2022-10-21 09:44:30 +0200
commitaa9e9052a6d7885b7ad76e213cf56effe740ed78 (patch)
tree17dfddabeea4368728f65f9cda23566832765957
parentMerge pull request #9088 from Fdawgs/chore/images (diff)
parentk_session_request: Add missing override specifier (diff)
downloadyuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar.gz
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar.bz2
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar.lz
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar.xz
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.tar.zst
yuzu-aa9e9052a6d7885b7ad76e213cf56effe740ed78.zip
-rw-r--r--src/core/hle/kernel/k_session_request.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/core/hle/kernel/k_session_request.h b/src/core/hle/kernel/k_session_request.h
index fcf521597..e5558bc2c 100644
--- a/src/core/hle/kernel/k_session_request.h
+++ b/src/core/hle/kernel/k_session_request.h
@@ -3,6 +3,8 @@
#pragma once
+#include <array>
+
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_event.h"
#include "core/hle/kernel/k_memory_block.h"
@@ -52,8 +54,7 @@ public:
};
public:
- explicit SessionMappings(KernelCore& kernel_)
- : kernel(kernel_), m_mappings(nullptr), m_num_send(), m_num_recv(), m_num_exch() {}
+ explicit SessionMappings(KernelCore& kernel_) : kernel(kernel_) {}
void Initialize() {}
void Finalize();
@@ -149,17 +150,15 @@ public:
private:
KernelCore& kernel;
- Mapping m_static_mappings[NumStaticMappings];
- Mapping* m_mappings;
- u8 m_num_send;
- u8 m_num_recv;
- u8 m_num_exch;
+ std::array<Mapping, NumStaticMappings> m_static_mappings;
+ Mapping* m_mappings{};
+ u8 m_num_send{};
+ u8 m_num_recv{};
+ u8 m_num_exch{};
};
public:
- explicit KSessionRequest(KernelCore& kernel_)
- : KAutoObject(kernel_), m_mappings(kernel_), m_thread(nullptr), m_server(nullptr),
- m_event(nullptr) {}
+ explicit KSessionRequest(KernelCore& kernel_) : KAutoObject(kernel_), m_mappings(kernel_) {}
static KSessionRequest* Create(KernelCore& kernel) {
KSessionRequest* req = KSessionRequest::Allocate(kernel);
@@ -281,7 +280,7 @@ public:
private:
// NOTE: This is public and virtual in Nintendo's kernel.
- void Finalize() {
+ void Finalize() override {
m_mappings.Finalize();
if (m_thread) {
@@ -297,11 +296,11 @@ private:
private:
SessionMappings m_mappings;
- KThread* m_thread;
- KProcess* m_server;
- KEvent* m_event;
- uintptr_t m_address;
- size_t m_size;
+ KThread* m_thread{};
+ KProcess* m_server{};
+ KEvent* m_event{};
+ uintptr_t m_address{};
+ size_t m_size{};
};
} // namespace Kernel