mirror of https://github.com/AxioDL/metaforce.git
CMemoryCardSys: Make CardResult's conversion operator explicit
Prevents implicit error-prone conversions to bool
This commit is contained in:
parent
df4487bae8
commit
ff92b72f91
|
@ -76,7 +76,7 @@ public:
|
||||||
ECardResult result;
|
ECardResult result;
|
||||||
CardResult(ECardResult res) : result(res) {}
|
CardResult(ECardResult res) : result(res) {}
|
||||||
operator ECardResult() const { return result; }
|
operator ECardResult() const { return result; }
|
||||||
operator bool() const { return result != ECardResult::READY; }
|
explicit operator bool() const { return result != ECardResult::READY; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CardFileHandle {
|
struct CardFileHandle {
|
||||||
|
|
Loading…
Reference in New Issue