From 7a0e7f449e63065e1787ceabb34f89411fb8a1b6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Sep 2019 00:59:29 -0400 Subject: [PATCH] PAK: Make operator bool() explicit for PAKEntryReadStream Prevents potential error-prone conversions to bool. --- DataSpec/DNACommon/PAK.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataSpec/DNACommon/PAK.hpp b/DataSpec/DNACommon/PAK.hpp index 66267e5c7..f4ef94012 100644 --- a/DataSpec/DNACommon/PAK.hpp +++ b/DataSpec/DNACommon/PAK.hpp @@ -23,7 +23,7 @@ class PAKEntryReadStream : public athena::io::IStreamReader { public: 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(PAKEntryReadStream&& other) = default; PAKEntryReadStream& operator=(const PAKEntryReadStream& other) = delete;