Commit 85388398 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Svn: Sprinkle with auto



Change-Id: Ib4bf4f856b32be91918bd68a62b74bd93a7755e0
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 78303bdd
......@@ -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;
}
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment