Utils: Pass context object to lambda connections

Remove some unneeded lambda () brackets.

Change-Id: I6b7e07cad8a240a7021c6ddacc84a971809ee717
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2022-12-07 14:34:32 +01:00
parent 166f710e62
commit 9afcf870a1
14 changed files with 18 additions and 18 deletions

View File

@@ -360,7 +360,7 @@ void MacroExpander::registerIntVariable(const QByteArray &variable,
{
const MacroExpander::IntFunction valuecopy = value; // do not capture a reference in a lambda
registerVariable(variable, description,
[valuecopy]() { return QString::number(valuecopy ? valuecopy() : 0); });
[valuecopy] { return QString::number(valuecopy ? valuecopy() : 0); });
}
/*!