forked from qt-creator/qt-creator
Work on lambdas C++20 compatibility
Change-Id: I0d391c02ae1e1c5a1751b33ca7e83902e1cfe269 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user