From f63098ccdfde762acc255d2c34577ffcea397677 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Sun, 28 Oct 2018 10:34:08 -0400 Subject: [PATCH] Kernel/CodeSet: change struct to class Fix a warning where class definition and forward declaration mismatch. CodeSet is a kernel object and have ctor/dtor/private members like others, so in convention it should be a class --- src/core/hle/kernel/process.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index fa04d8c42a..d1f5299435 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -50,7 +50,8 @@ enum class ProcessStatus { Created, Running, Exited }; class ResourceLimit; struct MemoryRegionInfo; -struct CodeSet final : public Object { +class CodeSet final : public Object { +public: struct Segment { std::size_t offset = 0; VAddr addr = 0;