1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-17 17:36:44 +00:00

htc: nullptr != false

This commit is contained in:
Michael Scire 2021-02-09 23:21:39 -08:00 committed by SciresM
parent f5e98de1a3
commit 82757cd1b4

View file

@ -50,7 +50,7 @@ namespace ams::htc::server::rpc {
return index < MaxTaskCount && m_valid[index];
}
public:
RpcTaskTable() : m_valid() { /* ... */ }
constexpr RpcTaskTable() = default;
template<typename T> requires std::derived_from<T, Task>
T *New(u32 index) {
@ -74,7 +74,7 @@ namespace ams::htc::server::rpc {
T *Get(u32 index) {
/* Check that the task is valid. */
if (!this->IsValid(index)) {
return false;
return nullptr;
}
/* Get the task pointer. */