From 4d31ddf5730ad3eed59331811218b26284438cef Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 22 May 2020 16:49:01 +0200 Subject: Port QDir, QFile from QStringRef to QStringView Task-number: QTBUG-84319 Change-Id: I7feb5c12eb5a8504c34292e0da75332b5ba9ef20 Reviewed-by: Edward Welbourne --- src/corelib/io/qfilesystementry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/io/qfilesystementry.cpp') 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) -- cgit v1.2.3