forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user