forked from qt-creator/qt-creator
ProjectExplorer: Fix MSVC compilation
Change-Id: I6062c1e9832bb9f50dd3439724706e1732c73720 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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 {
|
||||||
QString projectFilePath;
|
QString projectFilePath;
|
||||||
if (Project *project = ProjectExplorerPlugin::currentProject())
|
if (Project *project = ProjectExplorerPlugin::currentProject())
|
||||||
if (IDocument *doc = project->document())
|
if (IDocument *doc = project->document())
|
||||||
|
Reference in New Issue
Block a user