diff --git a/src/plugins/vcsbase/vcscommand.cpp b/src/plugins/vcsbase/vcscommand.cpp index 3bd7f8595c4..0491b0f7fa1 100644 --- a/src/plugins/vcsbase/vcscommand.cpp +++ b/src/plugins/vcsbase/vcscommand.cpp @@ -60,7 +60,7 @@ VcsCommand::VcsCommand(const QString &workingDirectory, Core::ShellCommand(workingDirectory, environment), m_preventRepositoryChanged(false) { - setOutputProxyFactory([]() -> Utils::OutputProxy * { + setOutputProxyFactory([this]() -> Utils::OutputProxy * { auto proxy = new Utils::OutputProxy; VcsOutputWindow *outputWindow = VcsOutputWindow::instance();