diff options
author | Liam <byteslice@airmail.cc> | 2022-11-05 17:23:47 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-11-05 17:23:47 +0100 |
commit | cf0f821565570314c7a47ba332774f4d4c0fff71 (patch) | |
tree | 6efccd230d172511f59e862642d74f4201696066 /src/core/hle/kernel | |
parent | core: hle: kernel: k_page_table: Remove unnecessary casts. (diff) | |
download | yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar.gz yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar.bz2 yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar.lz yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar.xz yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.tar.zst yuzu-cf0f821565570314c7a47ba332774f4d4c0fff71.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/k_class_token.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/k_handle_table.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_class_token.cpp b/src/core/hle/kernel/k_class_token.cpp index 6eb44d6a6..a850db3c4 100644 --- a/src/core/hle/kernel/k_class_token.cpp +++ b/src/core/hle/kernel/k_class_token.cpp @@ -120,6 +120,6 @@ static_assert(std::is_final_v<KTransferMemory> && std::is_base_of_v<KAutoObject, // static_assert(std::is_final_v<KCodeMemory> && // std::is_base_of_v<KAutoObject, KCodeMemory>); -static_assert(std::is_base_of<KAutoObject, KSystemResource>::value); +static_assert(std::is_base_of_v<KAutoObject, KSystemResource>); } // namespace Kernel diff --git a/src/core/hle/kernel/k_handle_table.h b/src/core/hle/kernel/k_handle_table.h index e98a01c86..65cae3b27 100644 --- a/src/core/hle/kernel/k_handle_table.h +++ b/src/core/hle/kernel/k_handle_table.h @@ -74,7 +74,7 @@ public: KScopedDisableDispatch dd{m_kernel}; KScopedSpinLock lk(m_lock); - if constexpr (std::is_same<T, KAutoObject>::value) { + if constexpr (std::is_same_v<T, KAutoObject>) { return this->GetObjectImpl(handle); } else { if (auto* obj = this->GetObjectImpl(handle); obj != nullptr) [[likely]] { |