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/writable_event.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/writable_event.h')
| -rw-r--r-- | src/core/hle/kernel/writable_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/writable_event.h b/src/core/hle/kernel/writable_event.h index c9068dd3d..d00c92a6b 100644 --- a/src/core/hle/kernel/writable_event.h +++ b/src/core/hle/kernel/writable_event.h @@ -37,7 +37,7 @@ public: return name; } - static const HandleType HANDLE_TYPE = HandleType::WritableEvent; + static constexpr HandleType HANDLE_TYPE = HandleType::WritableEvent; HandleType GetHandleType() const override { return HANDLE_TYPE; } |
