mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-23 19:52:40 +02:00
htc: nullptr != false
This commit is contained in:
parent
0286aacf33
commit
f2b51e2130
@ -50,7 +50,7 @@ namespace ams::htc::server::rpc {
|
|||||||
return index < MaxTaskCount && m_valid[index];
|
return index < MaxTaskCount && m_valid[index];
|
||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
RpcTaskTable() : m_valid() { /* ... */ }
|
constexpr RpcTaskTable() = default;
|
||||||
|
|
||||||
template<typename T> requires std::derived_from<T, Task>
|
template<typename T> requires std::derived_from<T, Task>
|
||||||
T *New(u32 index) {
|
T *New(u32 index) {
|
||||||
@ -74,7 +74,7 @@ namespace ams::htc::server::rpc {
|
|||||||
T *Get(u32 index) {
|
T *Get(u32 index) {
|
||||||
/* Check that the task is valid. */
|
/* Check that the task is valid. */
|
||||||
if (!this->IsValid(index)) {
|
if (!this->IsValid(index)) {
|
||||||
return false;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the task pointer. */
|
/* Get the task pointer. */
|
||||||
|
Loading…
Reference in New Issue
Block a user