diff --git a/DataSpec/DNACommon/PAK.hpp b/DataSpec/DNACommon/PAK.hpp index 39d1a6c5e..f4ef94012 100644 --- a/DataSpec/DNACommon/PAK.hpp +++ b/DataSpec/DNACommon/PAK.hpp @@ -18,12 +18,12 @@ namespace DataSpec { /** PAK entry stream reader */ class PAKEntryReadStream : public athena::io::IStreamReader { std::unique_ptr m_buf; - atUint64 m_sz; - atUint64 m_pos; + atUint64 m_sz = 0; + atUint64 m_pos = 0; public: - PAKEntryReadStream() {} - operator bool() const { return m_buf.operator bool(); } + PAKEntryReadStream() = default; + explicit operator bool() const { return m_buf.operator bool(); } PAKEntryReadStream(const PAKEntryReadStream& other) = delete; PAKEntryReadStream(PAKEntryReadStream&& other) = default; PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete;