diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 16:49:01 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-12 15:50:17 +0200 |
commit | 4d31ddf5730ad3eed59331811218b26284438cef (patch) | |
tree | 979df749241b7df2716fb1885ba464d6f530670d /src/corelib/io/qfilesystementry.cpp | |
parent | 5caf7ef3b1c67cc65efd21d2341955230a6ed43c (diff) |
Port QDir, QFile from QStringRef to QStringView
Task-number: QTBUG-84319
Change-Id: I7feb5c12eb5a8504c34292e0da75332b5ba9ef20
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qfilesystementry.cpp')
-rw-r--r-- | src/corelib/io/qfilesystementry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystementry.cpp b/src/corelib/io/qfilesystementry.cpp index 3c8a85291a..9b474b25b1 100644 --- a/src/corelib/io/qfilesystementry.cpp +++ b/src/corelib/io/qfilesystementry.cpp @@ -59,7 +59,7 @@ static bool isUncRoot(const QString &server) if (idx == -1 || idx + 1 == localPath.length()) return true; - return localPath.rightRef(localPath.length() - idx - 1).trimmed().isEmpty(); + return QStringView{localPath}.right(localPath.length() - idx - 1).trimmed().isEmpty(); } static inline QString fixIfRelativeUncPath(const QString &path) |