mirror of https://github.com/AxioDL/metaforce.git
PAK: Make operator bool() explicit for PAKEntryReadStream
Prevents potential error-prone conversions to bool.
This commit is contained in:
parent
107dfc4203
commit
7a0e7f449e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue