forked from qt-creator/qt-creator
Git: Modernize
* Use auto * Use override * Use some member initializers Change-Id: I3ca000d1c8e4d02331d58b85e68e4d771c636b29 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
c83b5afa9b
commit
202d40f256
@@ -94,7 +94,7 @@ public:
|
||||
const QString &repository, const Utils::FileName &git,
|
||||
const GerritServer &server,
|
||||
FetchMode fm, QObject *parent = nullptr);
|
||||
~FetchContext();
|
||||
~FetchContext() override;
|
||||
void start();
|
||||
|
||||
private:
|
||||
@@ -467,8 +467,7 @@ void GerritPlugin::fetch(const QSharedPointer<GerritChange> &change, int mode)
|
||||
if (repository.isEmpty())
|
||||
return;
|
||||
|
||||
FetchContext *fc = new FetchContext(change, repository, git,
|
||||
*m_server, FetchMode(mode), this);
|
||||
auto fc = new FetchContext(change, repository, git, *m_server, FetchMode(mode), this);
|
||||
connect(fc, &QObject::destroyed, this, &GerritPlugin::fetchFinished);
|
||||
emit fetchStarted(change);
|
||||
fc->start();
|
||||
|
||||
Reference in New Issue
Block a user