diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-28 20:09:08 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-28 20:09:08 +0100 |
commit | 5ca98829f7c5bf504e78bd51e6ceb534c023ae05 (patch) | |
tree | 2e624400f17b2b8220431a500e4ffc9f3671e4a7 /src/CompletionProxyModel.cpp | |
parent | 2866826356b1fb34c2252700487d1f5153004456 (diff) |
Some qt6 prep
Diffstat (limited to 'src/CompletionProxyModel.cpp')
-rw-r--r-- | src/CompletionProxyModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CompletionProxyModel.cpp b/src/CompletionProxyModel.cpp index 6354e91f..e32038e4 100644 --- a/src/CompletionProxyModel.cpp +++ b/src/CompletionProxyModel.cpp @@ -48,7 +48,7 @@ CompletionProxyModel::CompletionProxyModel(QAbstractItemModel *model, .toString() .toLower(); - for (const auto &e : string1.splitRef(splitPoints)) { + for (const auto &e : QStringView(string1).split(splitPoints)) { if (!e.isEmpty()) // NOTE(Nico): Use Qt::SkipEmptyParts in Qt 5.14 trie_.insert(e.toUcs4(), i); } @@ -59,7 +59,7 @@ CompletionProxyModel::CompletionProxyModel(QAbstractItemModel *model, .toLower(); if (!string2.isEmpty()) { - for (const auto &e : string2.splitRef(splitPoints)) { + for (const auto &e : QStringView(string2).split(splitPoints)) { if (!e.isEmpty()) // NOTE(Nico): Use Qt::SkipEmptyParts in Qt 5.14 trie_.insert(e.toUcs4(), i); } |