mirror of https://github.com/AxioDL/metaforce.git
CArchitectureQueue: Make operator bool explicit
Prevents potentially error-prone implicit conversion contexts.
This commit is contained in:
parent
df4487bae8
commit
e6812a7cd9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue