Minor code cleanup QTestPrivate::parseBlackList()
Constify local variables, where possible. Remove redundant include. Bump (c) year to 2024. Change-Id: If13fb87b306926cb94f75186071a1dff2969a945 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 6de2203fb75e034c1a02478daa13e8ddfcea5d75) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d04e4bac4f
commit
5413d4b460
@ -1,8 +1,6 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// Copyright (C) 2024 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
#include "qtestblacklist_p.h"
|
||||
#include "qtestresult_p.h"
|
||||
|
||||
#include <QtTest/qtestcase.h>
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qfile.h>
|
||||
@ -246,7 +244,7 @@ namespace QTestPrivate {
|
||||
|
||||
void parseBlackList()
|
||||
{
|
||||
QString filename = QTest::qFindTestData(QStringLiteral("BLACKLIST"));
|
||||
const QString filename = QTest::qFindTestData(QStringLiteral("BLACKLIST"));
|
||||
if (filename.isEmpty())
|
||||
return;
|
||||
QFile ignored(filename);
|
||||
@ -267,7 +265,7 @@ void parseBlackList()
|
||||
function = line.mid(1, line.size() - 2);
|
||||
continue;
|
||||
}
|
||||
bool condition = checkCondition(line);
|
||||
const bool condition = checkCondition(line);
|
||||
if (condition) {
|
||||
if (!function.size()) {
|
||||
ignoreAll = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user