mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
CToken: Make operator bool explicit
Prevents potential error-prone conversions from occurring
This commit is contained in:
@@ -74,7 +74,7 @@ class CToken {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/* Added to test for non-null state */
|
/* Added to test for non-null state */
|
||||||
operator bool() const { return x0_objRef != nullptr; }
|
explicit operator bool() const { return x0_objRef != nullptr; }
|
||||||
void Unlock();
|
void Unlock();
|
||||||
void Lock();
|
void Lock();
|
||||||
bool IsLocked() const { return x4_lockHeld; }
|
bool IsLocked() const { return x4_lockHeld; }
|
||||||
|
|||||||
Reference in New Issue
Block a user