forked from qt-creator/qt-creator
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 <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -76,7 +76,7 @@ static bool qtTestLibDefined(const Utils::FilePath &fileName)
|
||||
const QList<CppEditor::ProjectPart::ConstPtr> parts =
|
||||
CppEditor::CppModelManager::instance()->projectPart(fileName);
|
||||
if (parts.size() > 0) {
|
||||
return Utils::anyOf(parts.at(0)->projectMacros, [] (const ProjectExplorer::Macro ¯o) {
|
||||
return Utils::anyOf(parts.at(0)->projectMacros, [](const ProjectExplorer::Macro ¯o) {
|
||||
return macro.key == "QT_TESTLIB_LIB";
|
||||
});
|
||||
}
|
||||
@@ -218,7 +218,7 @@ static bool containsFunction(const QMap<QString, QtTestCodeLocationAndType> &tes
|
||||
const QString &function)
|
||||
{
|
||||
const QString search = "::" + function;
|
||||
return Utils::anyOf(testFunctions.keys(), [&search] (const QString &key) {
|
||||
return Utils::anyOf(testFunctions.keys(), [&search](const QString &key) {
|
||||
return key.endsWith(search);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user