VCS: Use namespace Utils

Change-Id: I41c818362398fd194995baf5b1adb16899e83217
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2018-07-17 22:54:58 +03:00
committed by Orgad Shaneh
parent dc29aafb52
commit afb60d0434
10 changed files with 92 additions and 76 deletions

View File

@@ -40,6 +40,7 @@
using namespace Core;
using namespace ProjectExplorer;
using namespace Utils;
namespace VcsBase {
namespace Internal {
@@ -68,8 +69,7 @@ VcsCommandPageFactory::VcsCommandPageFactory()
setTypeIdsSuffix(QLatin1String("VcsCommand"));
}
Utils::WizardPage *VcsCommandPageFactory::create(JsonWizard *wizard, Id typeId,
const QVariant &data)
WizardPage *VcsCommandPageFactory::create(JsonWizard *wizard, Id typeId, const QVariant &data)
{
Q_UNUSED(wizard);
@@ -286,8 +286,8 @@ void VcsCommandPage::delayedInitialize()
extraArgs << tmp;
}
ShellCommand *command
= vc->createInitialCheckoutCommand(repo, Utils::FileName::fromString(base),
Core::ShellCommand *command
= vc->createInitialCheckoutCommand(repo, FileName::fromString(base),
name, extraArgs);
foreach (const JobData &job, m_additionalJobs) {
@@ -310,7 +310,7 @@ void VcsCommandPage::delayedInitialize()
const QString dir = wiz->expander()->expand(job.workDirectory);
const int timeoutS = command->defaultTimeoutS() * job.timeOutFactor;
command->addJob(Utils::FileName::fromUserInput(commandString), args, timeoutS, dir);
command->addJob(FileName::fromUserInput(commandString), args, timeoutS, dir);
}
start(command);