aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp')
-rw-r--r--tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp b/tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp
index b8f7878b41..352ce21f8b 100644
--- a/tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp
+++ b/tests/auto/core/qqmlstandardpaths/tst_qqmlstandardpaths.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QQmlEngine>
#include <QQmlComponent>
@@ -113,9 +113,7 @@ void tst_qqmlstandardpaths::standardLocations()
#endif
QVERIFY2(!path.isEmpty(), qPrintable(QString::fromLatin1(
"Path for %1 received from QStandardPaths::standardLocations is empty").arg(locationName)));
- QUrl url = QUrl(path);
- if (url.scheme().isEmpty())
- url = QUrl::fromLocalFile(path);
+ QUrl url = QUrl::fromLocalFile(path);
QVERIFY(!url.isEmpty());
QVERIFY(url.isValid());
standardLocationUrls.append(url);