Browse Source

core: hle: kernel: Address review comments.

nce_cpp
Liam 3 years ago
parent
commit
f31c2e7f79
  1. 2
      src/core/hle/kernel/k_class_token.cpp
  2. 2
      src/core/hle/kernel/k_handle_table.h

2
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

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

Loading…
Cancel
Save