forked from qt-creator/qt-creator
Git: Fix warning about unused lambda captures
Change-Id: I9535dccfe0af169efaa6dc09898d34c4c9e17efd Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -616,12 +616,12 @@ void GitClient::chunkActionsRequested(QMenu *menu, int fileIndex, int chunkIndex
|
||||
menu->addSeparator();
|
||||
QAction *stageChunkAction = menu->addAction(tr("Stage Chunk"));
|
||||
connect(stageChunkAction, &QAction::triggered,
|
||||
[this, stageChunk, diffController, fileIndex, chunkIndex]() {
|
||||
[stageChunk, diffController, fileIndex, chunkIndex]() {
|
||||
stageChunk(diffController, fileIndex, chunkIndex, false);
|
||||
});
|
||||
QAction *unstageChunkAction = menu->addAction(tr("Unstage Chunk"));
|
||||
connect(unstageChunkAction, &QAction::triggered,
|
||||
[this, stageChunk, diffController, fileIndex, chunkIndex]() {
|
||||
[stageChunk, diffController, fileIndex, chunkIndex]() {
|
||||
stageChunk(diffController, fileIndex, chunkIndex, true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user