mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:47:42 +00:00
PAK: Make operator bool() explicit for PAKEntryReadStream
Prevents potential error-prone conversions to bool.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user