2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

core: hle: kernel: Address review comments.

This commit is contained in:
Liam 2022-11-05 12:23:47 -04:00
parent 05ae0cab0e
commit cf0f821565
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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]] {