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();
|
const Core::IVersionControl *vc = CvsPlugin::instance()->versionControl();
|
||||||
if (!vc->isConfigured()) {
|
if (!vc->isConfigured()) {
|
||||||
VcsConfigurationPage *configPage = new VcsConfigurationPage;
|
auto configPage = new VcsConfigurationPage;
|
||||||
configPage->setVersionControl(vc);
|
configPage->setVersionControl(vc);
|
||||||
addPage(configPage);
|
addPage(configPage);
|
||||||
}
|
}
|
||||||
CheckoutWizardPage *cwp = new CheckoutWizardPage;
|
auto cwp = new CheckoutWizardPage;
|
||||||
cwp->setPath(path.toString());
|
cwp->setPath(path.toString());
|
||||||
addPage(cwp);
|
addPage(cwp);
|
||||||
}
|
}
|
||||||
@@ -81,7 +81,7 @@ VcsCommand *CheckoutWizard::createCommand(Utils::FileName *checkoutDir)
|
|||||||
const QString workingDirectory = cwp->path();
|
const QString workingDirectory = cwp->path();
|
||||||
*checkoutDir = Utils::FileName::fromString(workingDirectory + QLatin1Char('/') + repository);
|
*checkoutDir = Utils::FileName::fromString(workingDirectory + QLatin1Char('/') + repository);
|
||||||
|
|
||||||
VcsCommand *command = new VcsCommand(binary, workingDirectory,
|
auto command = new VcsCommand(binary, workingDirectory,
|
||||||
QProcessEnvironment::systemEnvironment());
|
QProcessEnvironment::systemEnvironment());
|
||||||
command->addJob(settings.addOptions(args), -1);
|
command->addJob(settings.addOptions(args), -1);
|
||||||
return command;
|
return command;
|
||||||
|
@@ -61,7 +61,7 @@ QString CvsSubmitEditor::stateName(State st) const
|
|||||||
void CvsSubmitEditor::setStateList(const StateFilePairs &statusOutput)
|
void CvsSubmitEditor::setStateList(const StateFilePairs &statusOutput)
|
||||||
{
|
{
|
||||||
typedef StateFilePairs::const_iterator ConstIterator;
|
typedef StateFilePairs::const_iterator ConstIterator;
|
||||||
SubmitFileModel *model = new SubmitFileModel(this);
|
auto model = new SubmitFileModel(this);
|
||||||
|
|
||||||
const ConstIterator cend = statusOutput.constEnd();
|
const ConstIterator cend = statusOutput.constEnd();
|
||||||
for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it)
|
for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it)
|
||||||
|
Reference in New Issue
Block a user