diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-07 17:05:47 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-09-08 09:06:53 +0000 |
commit | 47886969cc340745a517d76c81b69fd7954fa173 (patch) | |
tree | 91875446d6f865510e071ede477b81e5c8aea5ad /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | e3ae628584f2434b6cc9210726deafd55769c260 (diff) | |
download | qt-creator-47886969cc340745a517d76c81b69fd7954fa173.tar.gz |
Drop unused variables and lambda captures
Also, add context to connect() expressions where we are or were
capturing "this".
Change-Id: I6e006ba6f83d532478018550d148ee93eca59605
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index e8fe2145f2..d0dfec3a56 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -205,10 +205,10 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error) Utils::MacroExpander *expander = Utils::globalMacroExpander(); expander->registerVariable("Cpp:LicenseTemplate", tr("The license template."), - [this]() { return CppToolsPlugin::licenseTemplate(); }); + []() { return CppToolsPlugin::licenseTemplate(); }); expander->registerFileVariables("Cpp:LicenseTemplatePath", tr("The configured path to the license template"), - [this]() { return CppToolsPlugin::licenseTemplatePath().toString(); }); + []() { return CppToolsPlugin::licenseTemplatePath().toString(); }); return true; } |