mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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()) {
|
||||
|
Reference in New Issue
Block a user