diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-11 16:30:52 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-11 16:34:53 -0400 |
| commit | 6300ccbc3c23ad24d6491a4e8b6b40a439fc611c (patch) | |
| tree | a820194db7b71e2ddff4808b8dcae466cf1d8861 /src/core/hle/kernel/thread.h | |
| parent | 2598433f9ca5b1c03d7ed69d8a71a65c2ea0d40f (diff) | |
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/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 73e5d1bb4..83c83e45a 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -106,7 +106,7 @@ public: return "Thread"; } - static const HandleType HANDLE_TYPE = HandleType::Thread; + static constexpr HandleType HANDLE_TYPE = HandleType::Thread; HandleType GetHandleType() const override { return HANDLE_TYPE; } |
