Compile fix with gcc 4.7.2

Looks like a compiler bug, but it's a supported environment.

Change-Id: I73d67a74e1adbac6747cbc96e3fbd96eeee9556c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
hjk
2014-07-18 00:49:51 +02:00
committed by Nikolai Kosjar
parent 65c113bcbc
commit b100d3bc9c

View File

@@ -186,10 +186,10 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
Core::VariableManager::registerVariable("Cpp:LicenseTemplate",
tr("The license template."),
[]() { return CppToolsPlugin::licenseTemplate(); });
[this]() { return CppToolsPlugin::licenseTemplate(); });
Core::VariableManager::registerFileVariables("Cpp:LicenseTemplatePath",
tr("The configured path to the license template."),
[]() { return CppToolsPlugin::licenseTemplatePath().toString(); });
[this]() { return CppToolsPlugin::licenseTemplatePath().toString(); });
return true;
}