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

driver/ToolBase: Make operator bool() explicit

Prevents error-prone conversions to bool.
This commit is contained in:
Lioncash
2019-08-19 22:35:30 -04:00
parent c390f3d489
commit 11364cbd53

View File

@@ -96,7 +96,7 @@ public:
virtual hecl::SystemString toolName() const = 0;
virtual int run() = 0;
virtual void cancel() {}
inline operator bool() const { return m_good; }
explicit operator bool() const { return m_good; }
};
class HelpOutput {