mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-01 18:01:20 +00:00
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…
x
Reference in New Issue
Block a user