From ce0f1baf5136dc0ec136318b216976fb34bacb30 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 22 Aug 2023 22:35:55 -0400 Subject: [PATCH] main: Access by reference Old Clang is fussy about this. --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 8fe8d0a23d..3f126d9d18 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1159,7 +1159,7 @@ void GMainWindow::InitializeWidgets() { QMenu context_menu; for (auto const& [value, text] : Config::use_docked_mode_texts_map) { - context_menu.addAction(text, [this, value] { + context_menu.addAction(text, [&] { if (value != Settings::values.use_docked_mode.GetValue()) { OnToggleDockedMode(); }