mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #224 from lioncash/explicit2
CMemoryCardSys: Make CardResult's conversion operator explicit
This commit is contained in:
commit
04c226e645
|
@ -76,7 +76,7 @@ public:
|
|||
ECardResult result;
|
||||
CardResult(ECardResult res) : result(res) {}
|
||||
operator ECardResult() const { return result; }
|
||||
operator bool() const { return result != ECardResult::READY; }
|
||||
explicit operator bool() const { return result != ECardResult::READY; }
|
||||
};
|
||||
|
||||
struct CardFileHandle {
|
||||
|
|
Loading…
Reference in New Issue