mirror of https://github.com/AxioDL/metaforce.git
driver/ToolBase: Make operator bool() explicit
Prevents error-prone conversions to bool.
This commit is contained in:
parent
c390f3d489
commit
11364cbd53
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue