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
1 changed files with 1 additions and 1 deletions

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 {