From 63d2e0e4b54248a0a5ca29ef9cd3205c16ab0365 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 25 Jun 2014 09:30:32 +0200 Subject: [PATCH] ProjectExplorer: Fix compile Change-Id: I578ac76029f52e3d7ca562034b263510f1d63e49 Reviewed-by: Eike Ziller --- src/plugins/projectexplorer/projectexplorer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 8568a61be9d..76fd8d359fb 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 { + [&]() -> QString { QString projectFilePath; if (Project *project = ProjectExplorerPlugin::currentProject()) if (IDocument *doc = project->document()) @@ -1103,7 +1103,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er VariableManager::registerVariable(Constants::VAR_CURRENTBUILD_TYPE, tr("The currently active build configuration's type."), - []() -> QString { + [&]() -> QString { if (BuildConfiguration *bc = activeBuildConfiguration()) { BuildConfiguration::BuildType type = bc->buildType(); if (type == BuildConfiguration::Debug)