summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qstandardpaths_unix.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-27 12:15:19 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-12 15:51:11 +0200
commit413a9f9bde60af2633c858435436891c8511385b (patch)
tree0161904d587c6da62da52706c4cc9f3ad779433f /src/corelib/io/qstandardpaths_unix.cpp
parentd6b74761342bd3cc317ba5cfbca138be087fea2e (diff)
Port remaining usages of QStringRef in QtCore to QStringView
Task-number: QTBUG-84319 Change-Id: If77bc94c18e8d522b4577050091cd7d7aa941311 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_unix.cpp')
-rw-r--r--src/corelib/io/qstandardpaths_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qstandardpaths_unix.cpp b/src/corelib/io/qstandardpaths_unix.cpp
index ec37ce7d76..ca2a2689f1 100644
--- a/src/corelib/io/qstandardpaths_unix.cpp
+++ b/src/corelib/io/qstandardpaths_unix.cpp
@@ -283,10 +283,10 @@ static QStringList xdgDataDirs()
dirs.append(QString::fromLatin1("/usr/local/share"));
dirs.append(QString::fromLatin1("/usr/share"));
} else {
- const auto parts = xdgDataDirsEnv.splitRef(QLatin1Char(':'), Qt::SkipEmptyParts);
+ const auto parts = QStringView{xdgDataDirsEnv}.split(QLatin1Char(':'), Qt::SkipEmptyParts);
// Normalize paths, skip relative paths
- for (const QStringRef &dir : parts) {
+ for (const auto &dir : parts) {
if (dir.startsWith(QLatin1Char('/')))
dirs.push_back(QDir::cleanPath(dir.toString()));
}