mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:44:56 +00:00
driver: Make tool constructors explicit
Enforces being explicit when constructing instances of these types.
This commit is contained in:
@@ -59,7 +59,7 @@ class ToolPackage final : public ToolBase {
|
||||
}
|
||||
|
||||
public:
|
||||
ToolPackage(const ToolPassInfo& info) : ToolBase(info), m_useProj(info.project) {
|
||||
explicit ToolPackage(const ToolPassInfo& info) : ToolBase(info), m_useProj(info.project) {
|
||||
if (!info.project)
|
||||
LogModule.report(logvisor::Fatal, fmt("hecl package must be ran within a project directory"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user