Work on lambdas C++20 compatibility

Change-Id: I0d391c02ae1e1c5a1751b33ca7e83902e1cfe269
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Serg Kryvonos
2023-12-07 12:48:05 +01:00
parent b442ca3873
commit c3a7279f05
14 changed files with 28 additions and 26 deletions

View File

@@ -425,9 +425,11 @@ bool BranchView::checkout()
return false;
}
const bool moveChanges = branchCheckoutDialog.moveLocalChangesToNextBranch();
const bool popStash = branchCheckoutDialog.popStashOfNextBranch();
const auto commandHandler = [=](const CommandResult &) {
const auto commandHandler = [this,
moveChanges = branchCheckoutDialog.moveLocalChangesToNextBranch(),
popStash = branchCheckoutDialog.popStashOfNextBranch(),
popMessageStart
](const CommandResult &) {
if (moveChanges) {
gitClient().endStashScope(m_repository);
} else if (popStash) {