diff options
Diffstat (limited to 'src/plugins/mercurial/clonewizard.cpp')
-rw-r--r-- | src/plugins/mercurial/clonewizard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/mercurial/clonewizard.cpp b/src/plugins/mercurial/clonewizard.cpp index 8f257ee8de..6dc14b532e 100644 --- a/src/plugins/mercurial/clonewizard.cpp +++ b/src/plugins/mercurial/clonewizard.cpp @@ -76,15 +76,15 @@ QSharedPointer<VCSBase::AbstractCheckoutJob> CloneWizard::createJob(const QList< if (!page) return QSharedPointer<VCSBase::AbstractCheckoutJob>(); - MercurialSettings *settings = MercurialPlugin::instance()->settings(); + const MercurialSettings &settings = MercurialPlugin::instance()->settings(); - QStringList args = settings->standardArguments(); + QStringList args = settings.standardArguments(); QString path = page->path(); QString directory = page->directory(); args << QLatin1String("clone") << page->repository() << directory; *checkoutPath = path + QLatin1Char('/') + directory; - return QSharedPointer<VCSBase::AbstractCheckoutJob>(new VCSBase::ProcessCheckoutJob(settings->binary(), + return QSharedPointer<VCSBase::AbstractCheckoutJob>(new VCSBase::ProcessCheckoutJob(settings.binary(), args, path)); } |