PAK: Make operator bool() explicit for PAKEntryReadStream

Prevents potential error-prone conversions to bool.
This commit is contained in:
Lioncash 2019-09-05 00:59:29 -04:00
parent 107dfc4203
commit 7a0e7f449e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class PAKEntryReadStream : public athena::io::IStreamReader {
public: public:
PAKEntryReadStream() = default; PAKEntryReadStream() = default;
operator bool() const { return m_buf.operator bool(); } explicit operator bool() const { return m_buf.operator bool(); }
PAKEntryReadStream(const PAKEntryReadStream& other) = delete; PAKEntryReadStream(const PAKEntryReadStream& other) = delete;
PAKEntryReadStream(PAKEntryReadStream&& other) = default; PAKEntryReadStream(PAKEntryReadStream&& other) = default;
PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete; PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete;