Mercurial: Fix passing editor parameters when creating a factory

Otherwise the internal id and and the mimetype members might be
just null pointers. Amends 20658d689.

Change-Id: I4593d471637c144942130615e5be39c6da85c31f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Christian Stenger
2018-11-15 14:50:43 +01:00
parent 906b7fd787
commit bcf879200e

View File

@@ -133,7 +133,7 @@ bool MercurialPlugin::initialize(const QStringList & /* arguments */, QString *
m_client->view(source, id);
};
const auto widgetCreator = []() { return new MercurialEditorWidget; };
for (auto editor : editorParameters)
for (auto &editor : editorParameters)
new VcsEditorFactory(&editor, widgetCreator, describeFunc, this);
new VcsSubmitEditorFactory(&submitEditorParameters,