diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-22 10:55:41 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-06-10 07:08:57 +0000 |
commit | 6c108ee0c489dbc9c67b3ff1064f08d30c60d0ea (patch) | |
tree | 3dd751a5533bfb2819ee931531e14565f982c818 /src/widgets/util | |
parent | be61790a9ec7366aaddaaf8531dfe5e590c0f23c (diff) |
Port QtWidgets from QStringRef to QStringView
Change-Id: Ibe348e7aea838ab8c2d628bb43709c867a506637
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/util')
-rw-r--r-- | src/widgets/util/qcompleter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/util/qcompleter.cpp b/src/widgets/util/qcompleter.cpp index 72084ebd8f..7853398a70 100644 --- a/src/widgets/util/qcompleter.cpp +++ b/src/widgets/util/qcompleter.cpp @@ -984,7 +984,7 @@ static bool completeOnLoaded(const QFileSystemModel *model, // The user is typing something within that directory and is not in a subdirectory yet. const auto separator = QLatin1Char('/'); return prefix.startsWith(path, caseSensitivity) && prefix.at(pathSize) == separator - && !prefix.rightRef(prefixSize - pathSize - 1).contains(separator); + && !QStringView{prefix}.right(prefixSize - pathSize - 1).contains(separator); } void QCompleterPrivate::_q_fileSystemModelDirectoryLoaded(const QString &path) |