Merge pull request #224 from lioncash/explicit2

CMemoryCardSys: Make CardResult's conversion operator explicit
This commit is contained in:
Luke Street 2020-03-15 19:45:13 -04:00 committed by GitHub
commit 04c226e645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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