From e6812a7cd955f5ab16c0e553d142f0354ce5b95c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 14 Mar 2020 21:42:35 -0400 Subject: [PATCH] CArchitectureQueue: Make operator bool explicit Prevents potentially error-prone implicit conversion contexts. --- Runtime/CArchitectureQueue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CArchitectureQueue.hpp b/Runtime/CArchitectureQueue.hpp index 8aae965a0..1c14c2a47 100644 --- a/Runtime/CArchitectureQueue.hpp +++ b/Runtime/CArchitectureQueue.hpp @@ -16,7 +16,7 @@ public: return msg; } void Clear() { m_list.clear(); } - operator bool() const { return m_list.size() != 0; } + explicit operator bool() const { return !m_list.empty(); } }; } // namespace urde