summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/wizard/vcscommandpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/vcsbase/wizard/vcscommandpage.cpp')
-rw-r--r--src/plugins/vcsbase/wizard/vcscommandpage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
index f40138c1a3..0e725e6ef2 100644
--- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp
+++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
@@ -71,9 +71,9 @@ VcsCommandPageFactory::VcsCommandPageFactory()
WizardPage *VcsCommandPageFactory::create(JsonWizard *wizard, Id typeId, const QVariant &data)
{
- Q_UNUSED(wizard);
+ Q_UNUSED(wizard)
- QTC_ASSERT(canCreate(typeId), return 0);
+ QTC_ASSERT(canCreate(typeId), return nullptr);
QVariantMap tmp = data.toMap();
@@ -89,7 +89,7 @@ WizardPage *VcsCommandPageFactory::create(JsonWizard *wizard, Id typeId, const Q
} else if (argsVar.type() == QVariant::List) {
args = Utils::transform(argsVar.toList(), &QVariant::toString);
} else {
- return 0;
+ return nullptr;
}
}
@@ -310,7 +310,7 @@ void VcsCommandPage::delayedInitialize()
const QString dir = wiz->expander()->expand(job.workDirectory);
const int timeoutS = command->defaultTimeoutS() * job.timeOutFactor;
- command->addJob(FilePath::fromUserInput(commandString), args, timeoutS, dir);
+ command->addJob({FilePath::fromUserInput(commandString), args}, timeoutS, dir);
}
start(command);