diff --git a/autotests/qztoolstest.cpp b/autotests/qztoolstest.cpp index 35a88c5e4..fbb8275ec 100644 --- a/autotests/qztoolstest.cpp +++ b/autotests/qztoolstest.cpp @@ -296,7 +296,7 @@ void QzToolsTest::copyRecursivelyTest() const QString testDir = createPath("copyRecursivelyTest"); createTestDirectoryStructure(testDir); - QVERIFY(!QFileInfo(testDir + QSL("-copy")).exists()); + QVERIFY(!QFileInfo::exists(testDir + QSL("-copy"))); // Copy to non-existent target QCOMPARE(QzTools::copyRecursively(testDir, testDir + QSL("-copy")), true); @@ -331,7 +331,7 @@ void QzToolsTest::removeRecursivelyTest() QCOMPARE(QzTools::copyRecursively(testDir, testDir + QSL("-copy")), true); QCOMPARE(QzTools::removeRecursively(testDir + QSL("-copy")), true); - QCOMPARE(QFileInfo(testDir + QSL("-copy")).exists(), false); + QCOMPARE(QFileInfo::exists(testDir + QSL("-copy")), false); // Remove non-existent path returns success QCOMPARE(QzTools::removeRecursively(testDir + QSL("-copy")), true); diff --git a/src/plugins/TabManager/tldextractor/tldextractor.cpp b/src/plugins/TabManager/tldextractor/tldextractor.cpp index 96ea44c34..d06903b2c 100644 --- a/src/plugins/TabManager/tldextractor/tldextractor.cpp +++ b/src/plugins/TabManager/tldextractor/tldextractor.cpp @@ -249,7 +249,7 @@ void TLDExtractor::loadData() for (const QString &path : std::as_const(m_dataSearchPaths)) { dataFileName = QFileInfo(path + QLatin1String("/effective_tld_names.dat")).absoluteFilePath(); - if (QFileInfo(dataFileName).exists()) { + if (QFileInfo::exists(dataFileName)) { parsedDataFileExist = true; break; } @@ -352,7 +352,7 @@ bool TLDExtractor::test() for (const QString &path : std::as_const(m_dataSearchPaths)) { testDataFileName = QFileInfo(path + QLatin1String("/test_psl.txt")).absoluteFilePath(); - if (QFileInfo(testDataFileName).exists()) { + if (QFileInfo::exists(testDataFileName)) { testDataFileExist = true; break; }