diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-06-25 17:25:55 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-06-25 17:50:56 +0200 |
commit | 839502e204482a00caacecee4d392e0ba7301d90 (patch) | |
tree | eddaca5141ff7ae3c1ad134d32f0c9e720480fc3 /src | |
parent | 05d4cc5d29c2b1f29f976139bf760df7661890fd (diff) | |
download | qt-creator-839502e204482a00caacecee4d392e0ba7301d90.tar.gz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/projectexplorer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 13824d827e..e372b62bd9 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()) |