From 839502e204482a00caacecee4d392e0ba7301d90 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 25 Jun 2014 17:25:55 +0200 Subject: [PATCH] ProjectExplorer: Fix compilation with MSVC 2010. Compiler error was: src\plugins\projectexplorer\projectexplorer.cpp(1054) : error C2065: '__this' : undeclared identifier src\plugins\projectexplorer\projectexplorer.cpp(1054) : error C2227: left of '->currentProject' must point to class/struct/union/generic type src\plugins\projectexplorer\projectexplorer.cpp(1054) : error C2232: '- has '' type, use '.' Change-Id: I0c87ed992607bfee3155d7dc3c89fced60cb2b1b Reviewed-by: hjk Reviewed-by: Daniel Teske --- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 13824d827e6..e372b62bd91 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1049,7 +1049,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er VariableManager::registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX, tr("Current project's main file"), - [&]() -> QString { + [this]() -> QString { QString projectFilePath; if (Project *project = ProjectExplorerPlugin::currentProject()) if (IDocument *doc = project->document())