From 9e571931d05627ef7348295460b19c1cfede4a17 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 7 Dec 2022 14:45:43 +0100 Subject: AutoTest: Pass context object to lambda connections Remove some unneeded lambda () brackets. Glue lambda brackets with parameters brackets. Change-Id: I414f7dbbaf60b452cb71f77d53d972937f121a47 Reviewed-by: Qt CI Bot Reviewed-by: Christian Stenger --- src/plugins/autotest/testcodeparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/autotest/testcodeparser.cpp') diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index 8edfea8a26..2e1be96235 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -46,7 +46,7 @@ TestCodeParser::TestCodeParser() connect(&m_futureWatcher, &QFutureWatcher::finished, this, &TestCodeParser::onFinished); connect(&m_futureWatcher, &QFutureWatcher::resultReadyAt, - this, [this] (int index) { + this, [this](int index) { emit testParseResultReady(m_futureWatcher.resultAt(index)); }); connect(this, &TestCodeParser::parsingFinished, this, &TestCodeParser::releaseParserInternals); @@ -112,7 +112,7 @@ void TestCodeParser::emitUpdateTestTree(ITestParser *parser) qCDebug(LOG) << "adding singleShot"; m_singleShotScheduled = true; - QTimer::singleShot(1000, this, [this]() { updateTestTree(m_updateParsers); }); + QTimer::singleShot(1000, this, [this] { updateTestTree(m_updateParsers); }); } void TestCodeParser::updateTestTree(const QSet &parsers) @@ -310,7 +310,7 @@ void TestCodeParser::scanForTests(const Utils::FilePaths &fileList, TestTreeModel::instance()->updateCheckStateCache(); if (isFullParse) { // remove qml files as they will be found automatically by the referencing cpp file - list = Utils::filtered(list, [] (const Utils::FilePath &fn) { + list = Utils::filtered(list, [](const Utils::FilePath &fn) { return !fn.endsWith(".qml"); }); if (!parsers.isEmpty()) { -- cgit v1.2.1