ProjectExplorer: Fix compile for older gcc

Issue was introduced in 5003bc60d0ec8188e0f4b9458b821fb7ffb55de9;

Change-Id: Ibe016f884e4eea8093173ced497ee4c62f1265c3
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Christian Stenger
2014-10-22 12:27:44 +02:00
committed by hjk
parent 7a3c942f35
commit 63e6612f17

View File

@@ -1144,7 +1144,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
expander->registerVariable(Constants::VAR_CURRENTPROJECT_NAME,
tr("The current project's name."),
[]() -> QString {
[this]() -> QString {
Project *project = ProjectExplorerPlugin::currentProject();
return project ? project->displayName() : QString();
});