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 <hjk121@nokiamail.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Christian Kandeler
2014-06-25 17:25:55 +02:00
committed by hjk
parent 05d4cc5d29
commit 839502e204

View File

@@ -1049,7 +1049,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
VariableManager::registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX, VariableManager::registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX,
tr("Current project's main file"), tr("Current project's main file"),
[&]() -> QString { [this]() -> QString {
QString projectFilePath; QString projectFilePath;
if (Project *project = ProjectExplorerPlugin::currentProject()) if (Project *project = ProjectExplorerPlugin::currentProject())
if (IDocument *doc = project->document()) if (IDocument *doc = project->document())