Skip to content

Commit

Permalink
lambda capture
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Nov 13, 2023
1 parent 273fac0 commit bc58d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainWindow_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ TEST(MainWindowTest,

// Access window after it's open
bool closed{false};
QTimer::singleShot(300, App(), [&closed]
QTimer::singleShot(300, App(), [&closed, &app]
{
auto *win = app.findChild<MainWindow *>();
ASSERT_NE(nullptr, win);
Expand Down

0 comments on commit bc58d59

Please sign in to comment.