mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use vector instead of custom linked list.
This commit is contained in:
@@ -1070,7 +1070,7 @@ void AddSpecialBoxSearchController::addChatsContacts() {
|
||||
auto result = (const Dialogs::List*)nullptr;
|
||||
for (const auto &word : wordList) {
|
||||
const auto found = list->filtered(word[0]);
|
||||
if (found->isEmpty()) {
|
||||
if (found->empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!result || result->size() > found->size()) {
|
||||
|
@@ -952,7 +952,7 @@ void ShareBox::Inner::updateFilter(QString filter) {
|
||||
if (!_chatsIndexed->isEmpty()) {
|
||||
for (fi = fb; fi != fe; ++fi) {
|
||||
auto found = _chatsIndexed->filtered(fi->at(0));
|
||||
if (found->isEmpty()) {
|
||||
if (found->empty()) {
|
||||
toFilter = nullptr;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user