diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 8f6cf77f3e5..58227e27b22 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -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; }