2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 19:11:20 +00:00

CArchitectureQueue: Make operator bool explicit

Prevents potentially error-prone implicit conversion contexts.
This commit is contained in:
Lioncash 2020-03-14 21:42:35 -04:00
parent df4487bae8
commit e6812a7cd9

View File

@ -16,7 +16,7 @@ public:
return msg; return msg;
} }
void Clear() { m_list.clear(); } void Clear() { m_list.clear(); }
operator bool() const { return m_list.size() != 0; } explicit operator bool() const { return !m_list.empty(); }
}; };
} // namespace urde } // namespace urde