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

CVS: Sprinkle with auto



Change-Id: Ia75fef66615dfe8a7fe8fb6b170fac550b3cfa83
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 32c93d26
......@@ -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,8 +81,8 @@ VcsCommand *CheckoutWizard::createCommand(Utils::FileName *checkoutDir)
const QString workingDirectory = cwp->path();
*checkoutDir = Utils::FileName::fromString(workingDirectory + QLatin1Char('/') + repository);
VcsCommand *command = new VcsCommand(binary, workingDirectory,
QProcessEnvironment::systemEnvironment());
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)
......
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