diff options
author | Axel Spoerl <[email protected]> | 2024-07-23 08:36:15 +0200 |
---|---|---|
committer | Axel Spoerl <[email protected]> | 2024-07-23 23:40:29 +0200 |
commit | 6de2203fb75e034c1a02478daa13e8ddfcea5d75 (patch) | |
tree | e44292b7ac809c22e7533cbc4c6c0a2374ac545c | |
parent | cb6799d26b7eb0d52507739574afec98623fb462 (diff) |
Minor code cleanup QTestPrivate::parseBlackList()
Constify local variables, where possible.
Remove redundant include.
Bump (c) year to 2024.
Pick-to: 6.8
Change-Id: If13fb87b306926cb94f75186071a1dff2969a945
Reviewed-by: Fabian Kosmale <[email protected]>
-rw-r--r-- | src/testlib/qtestblacklist.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testlib/qtestblacklist.cpp b/src/testlib/qtestblacklist.cpp index 95dfb28e69f..7d848b3f1c3 100644 --- a/src/testlib/qtestblacklist.cpp +++ b/src/testlib/qtestblacklist.cpp @@ -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; |