forked from qt-creator/qt-creator
VCS: Replace describe slots with lambdas
Change-Id: I05ca25aad8be43fdfa15d3fb5eaaa9bf753ee79f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
565aed03a2
commit
5832f52cee
@@ -432,11 +432,13 @@ bool ClearCasePlugin::initialize(const QStringList & /*arguments */, QString *er
|
||||
[]() { return new ClearCaseSubmitEditor(&submitParameters); }));
|
||||
|
||||
// any editor responds to describe (when clicking a version)
|
||||
static const char *describeSlot = SLOT(describe(QString,QString));
|
||||
const auto describeFunc = [this](const QString &source, const QString &changeNr) {
|
||||
describe(source, changeNr);
|
||||
};
|
||||
const int editorCount = sizeof(editorParameters)/sizeof(VcsBaseEditorParameters);
|
||||
const auto widgetCreator = []() { return new ClearCaseEditorWidget; };
|
||||
for (int i = 0; i < editorCount; i++)
|
||||
addAutoReleasedObject(new VcsEditorFactory(editorParameters + i, widgetCreator, this, describeSlot));
|
||||
addAutoReleasedObject(new VcsEditorFactory(editorParameters + i, widgetCreator, describeFunc));
|
||||
|
||||
const QString description = QLatin1String("ClearCase");
|
||||
const QString prefix = QLatin1String("cc");
|
||||
|
||||
Reference in New Issue
Block a user