CMemoryCardSys: Make CardResult's conversion operator explicit

Prevents implicit error-prone conversions to bool
This commit is contained in:
Lioncash 2020-03-14 22:18:06 -04:00
parent df4487bae8
commit ff92b72f91
1 changed files with 1 additions and 1 deletions

View File

@ -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 {