forked from qt-creator/qt-creator
Svn: Sprinkle with auto
Change-Id: Ib4bf4f856b32be91918bd68a62b74bd93a7755e0 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -55,11 +55,11 @@ CheckoutWizard::CheckoutWizard(const FileName &path, QWidget *parent) :
|
||||
{
|
||||
const Core::IVersionControl *vc = SubversionPlugin::instance()->versionControl();
|
||||
if (!vc->isConfigured()) {
|
||||
VcsConfigurationPage *configPage = new VcsConfigurationPage;
|
||||
auto configPage = new VcsConfigurationPage;
|
||||
configPage->setVersionControl(vc);
|
||||
addPage(configPage);
|
||||
}
|
||||
CheckoutWizardPage *cwp = new CheckoutWizardPage;
|
||||
auto cwp = new CheckoutWizardPage;
|
||||
cwp->setPath(path.toString());
|
||||
addPage(cwp);
|
||||
}
|
||||
@@ -87,8 +87,8 @@ VcsCommand *CheckoutWizard::createCommand(FileName *checkoutDir)
|
||||
const QString workingDirectory = cwp->path();
|
||||
*checkoutDir = FileName::fromString(workingDirectory + QLatin1Char('/') + directory);
|
||||
|
||||
VcsCommand *command = new VcsCommand(binary, workingDirectory,
|
||||
QProcessEnvironment::systemEnvironment());
|
||||
auto command = new VcsCommand(binary, workingDirectory,
|
||||
QProcessEnvironment::systemEnvironment());
|
||||
command->addJob(args, -1);
|
||||
return command;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user