summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-11 16:30:52 -0400
committerGravatar Lioncash2019-04-11 16:34:53 -0400
commit6300ccbc3c23ad24d6491a4e8b6b40a439fc611c (patch)
treea820194db7b71e2ddff4808b8dcae466cf1d8861 /src/core/hle/kernel/process.h
parentMerge pull request #2354 from lioncash/header (diff)
downloadyuzu-6300ccbc3c23ad24d6491a4e8b6b40a439fc611c.tar.gz
yuzu-6300ccbc3c23ad24d6491a4e8b6b40a439fc611c.tar.xz
yuzu-6300ccbc3c23ad24d6491a4e8b6b40a439fc611c.zip
kernel: Make handle type declarations constexpr
Some objects declare their handle type as const, while others declare it as constexpr. This makes the const ones constexpr for consistency, and prevent unexpected compilation errors if these happen to be attempted to be used within a constexpr context.
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index f060f2a3b..dda52f4c0 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -85,7 +85,7 @@ public:
85 return name; 85 return name;
86 } 86 }
87 87
88 static const HandleType HANDLE_TYPE = HandleType::Process; 88 static constexpr HandleType HANDLE_TYPE = HandleType::Process;
89 HandleType GetHandleType() const override { 89 HandleType GetHandleType() const override {
90 return HANDLE_TYPE; 90 return HANDLE_TYPE;
91 } 91 }