diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-09-18 13:18:30 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-09-18 14:41:32 +0000 |
commit | 6225d33c282fc56d1c7b634bdeef04bccf6a914a (patch) | |
tree | a975cea0e29c1a7dc7aa7369015aad1426a5ad60 /src/plugins/bookmarks | |
parent | 2a70bc1d0983b9c26c3db513e37410bcabc73d90 (diff) |
Fix build issues with Qt6
Change from QStringRef to QStringView at various places.
Task-number: QTCREATORBUG-24098
Change-Id: Ia7a634fa26464fbb2962724d5f0e188cecc68801
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/bookmarks')
-rw-r--r-- | src/plugins/bookmarks/bookmarkmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp index 2eea0235ea..01f76026f8 100644 --- a/src/plugins/bookmarks/bookmarkmanager.cpp +++ b/src/plugins/bookmarks/bookmarkmanager.cpp @@ -743,7 +743,7 @@ void BookmarkManager::addBookmark(const QString &s) if (index3 != -1 || index2 != -1 || index1 != -1) { const QString &filePath = s.mid(index1+1, index2-index1-1); const QString ¬e = s.mid(index3 + 1); - const int lineNumber = s.midRef(index2 + 1, index3 - index2 - 1).toInt(); + const int lineNumber = s.mid(index2 + 1, index3 - index2 - 1).toInt(); if (!filePath.isEmpty() && !findBookmark(FilePath::fromString(filePath), lineNumber)) { auto b = new Bookmark(lineNumber, this); b->updateFileName(FilePath::fromString(filePath)); |