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,7 +87,7 @@ VcsCommand *CheckoutWizard::createCommand(FileName *checkoutDir)
|
||||
const QString workingDirectory = cwp->path();
|
||||
*checkoutDir = FileName::fromString(workingDirectory + QLatin1Char('/') + directory);
|
||||
|
||||
VcsCommand *command = new VcsCommand(binary, workingDirectory,
|
||||
auto command = new VcsCommand(binary, workingDirectory,
|
||||
QProcessEnvironment::systemEnvironment());
|
||||
command->addJob(args, -1);
|
||||
return command;
|
||||
|
@@ -249,7 +249,7 @@ void SubversionDiffEditorReloader::postCollectTextualDiffOutput()
|
||||
|
||||
controller()->requestSaveState();
|
||||
controller()->clear(m_waitMessage);
|
||||
VcsCommand *command = new VcsCommand(subversionPath(), m_workingDirectory, processEnvironment());
|
||||
auto command = new VcsCommand(subversionPath(), m_workingDirectory, processEnvironment());
|
||||
command->setCodec(EditorManager::defaultTextCodec());
|
||||
connect(command, SIGNAL(output(QString)),
|
||||
this, SLOT(slotTextualDiffOutputReceived(QString)));
|
||||
|
@@ -47,7 +47,7 @@ SubversionSubmitEditor::SubversionSubmitEditor(const VcsBase::VcsBaseSubmitEdito
|
||||
void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &statusOutput)
|
||||
{
|
||||
typedef QList<StatusFilePair>::const_iterator ConstIterator;
|
||||
VcsBase::SubmitFileModel *model = new VcsBase::SubmitFileModel(this);
|
||||
auto model = new VcsBase::SubmitFileModel(this);
|
||||
|
||||
const ConstIterator cend = statusOutput.constEnd();
|
||||
for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it)
|
||||
|
Reference in New Issue
Block a user