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
1 changed files with 1 additions and 1 deletions

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