mirror of https://github.com/AxioDL/metaforce.git
CToken: Make operator bool explicit
Prevents potential error-prone conversions from occurring
This commit is contained in:
parent
4daa8ac374
commit
a6367c0688
|
@ -74,7 +74,7 @@ class CToken {
|
|||
|
||||
public:
|
||||
/* 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 Lock();
|
||||
bool IsLocked() const { return x4_lockHeld; }
|
||||
|
|
Loading…
Reference in New Issue