From 0b1e6599c909cfa05e6fbdad7ef1940ddb146012 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 7 Oct 2019 14:32:35 +0300 Subject: [PATCH] Debugger: Fix MSVC warning Using QObject::connect without capturing 'this'. Change-Id: I64e61e897760002888d7a11771bd2dc36e640c72 Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggerplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 50ac0504a7d..e37c0df132b 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -836,7 +836,7 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments) vbox->insertWidget(0, label); }; - const auto addFontSizeAdaptation = [](QWidget *widget) { + const auto addFontSizeAdaptation = [this](QWidget *widget) { QObject::connect(TextEditorSettings::instance(), &TextEditorSettings::fontSettingsChanged, [widget](const FontSettings &settings) { if (!boolSetting(FontSizeFollowsEditor))