mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
driver: Make tool constructors explicit
Enforces being explicit when constructing instances of these types.
This commit is contained in:
@@ -88,7 +88,7 @@ protected:
|
||||
}
|
||||
|
||||
public:
|
||||
ToolBase(const ToolPassInfo& info) : m_info(info) {
|
||||
explicit ToolBase(const ToolPassInfo& info) : m_info(info) {
|
||||
hecl::VerbosityLevel = info.verbosityLevel;
|
||||
hecl::GuiMode = info.gui;
|
||||
}
|
||||
@@ -156,7 +156,7 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
HelpOutput(HelpFunc helpFunc)
|
||||
explicit HelpOutput(HelpFunc helpFunc)
|
||||
: m_sout(NULL), m_helpFunc(helpFunc), m_lineWidth(hecl::GuiMode ? 120 : hecl::ConsoleWidth()) {}
|
||||
|
||||
void go() {
|
||||
|
||||
Reference in New Issue
Block a user