2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

General: Make operator bool() explicit where applicable

Makes conversions to bool slightly less error-prone by requiring them to
be explicit in non-obvious contexts.
This commit is contained in:
Lioncash
2019-08-21 17:31:20 -04:00
parent 120ed20bfa
commit 7bb3912d39
8 changed files with 10 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ public:
inflateInit(&m_zstrm);
}
~ShaderCacheZipStream() override { inflateEnd(&m_zstrm); }
operator bool() const { return m_compBuf.operator bool(); }
explicit operator bool() const { return m_compBuf.operator bool(); }
atUint64 readUBytesToBuf(void* buf, atUint64 len) override {
m_zstrm.next_out = (Bytef*)buf;
m_zstrm.avail_out = len;