mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
driver/ToolBase: Make operator bool() explicit
Prevents error-prone conversions to bool.
This commit is contained in:
@@ -96,7 +96,7 @@ public:
|
|||||||
virtual hecl::SystemString toolName() const = 0;
|
virtual hecl::SystemString toolName() const = 0;
|
||||||
virtual int run() = 0;
|
virtual int run() = 0;
|
||||||
virtual void cancel() {}
|
virtual void cancel() {}
|
||||||
inline operator bool() const { return m_good; }
|
explicit operator bool() const { return m_good; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class HelpOutput {
|
class HelpOutput {
|
||||||
|
|||||||
Reference in New Issue
Block a user