Libs: Cleanup lambdas

Change-Id: I715a124dd73f23c735dde27d3205ac7613ae04c6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-12-12 12:12:36 +01:00
parent d81b4c3aff
commit 24397509d4
8 changed files with 18 additions and 18 deletions

View File

@@ -541,7 +541,7 @@ bool Scanner::isKeyword(const QString &text) const
QStringList Scanner::keywords()
{
static QStringList words = []() {
static QStringList words = [] {
QStringList res;
for (const QString *word = begin(js_keywords); word != end(js_keywords); ++word)
res.append(*word);