forked from qt-creator/qt-creator
CVS: Sprinkle with auto
Change-Id: Ia75fef66615dfe8a7fe8fb6b170fac550b3cfa83 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -52,11 +52,11 @@ CheckoutWizard::CheckoutWizard(const Utils::FileName &path, QWidget *parent) :
|
||||
{
|
||||
const Core::IVersionControl *vc = CvsPlugin::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);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ VcsCommand *CheckoutWizard::createCommand(Utils::FileName *checkoutDir)
|
||||
const QString workingDirectory = cwp->path();
|
||||
*checkoutDir = Utils::FileName::fromString(workingDirectory + QLatin1Char('/') + repository);
|
||||
|
||||
VcsCommand *command = new VcsCommand(binary, workingDirectory,
|
||||
auto command = new VcsCommand(binary, workingDirectory,
|
||||
QProcessEnvironment::systemEnvironment());
|
||||
command->addJob(settings.addOptions(args), -1);
|
||||
return command;
|
||||
|
@@ -61,7 +61,7 @@ QString CvsSubmitEditor::stateName(State st) const
|
||||
void CvsSubmitEditor::setStateList(const StateFilePairs &statusOutput)
|
||||
{
|
||||
typedef StateFilePairs::const_iterator ConstIterator;
|
||||
SubmitFileModel *model = new SubmitFileModel(this);
|
||||
auto model = new SubmitFileModel(this);
|
||||
|
||||
const ConstIterator cend = statusOutput.constEnd();
|
||||
for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it)
|
||||
|
Reference in New Issue
Block a user