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/resource_limit.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/resource_limit.h')
| -rw-r--r-- | src/core/hle/kernel/resource_limit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/resource_limit.h b/src/core/hle/kernel/resource_limit.h index 70e09858a..2613a6bb5 100644 --- a/src/core/hle/kernel/resource_limit.h +++ b/src/core/hle/kernel/resource_limit.h @@ -41,7 +41,7 @@ public: return GetTypeName(); } - static const HandleType HANDLE_TYPE = HandleType::ResourceLimit; + static constexpr HandleType HANDLE_TYPE = HandleType::ResourceLimit; HandleType GetHandleType() const override { return HANDLE_TYPE; } |
