mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #193 from lioncash/explicit
CToken: Make operator bool explicit
This commit is contained in:
commit
51bb2244da
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue