2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Fix crash in Clang in Xcode 10.2.

This commit is contained in:
John Preston
2019-04-03 13:09:49 +04:00
parent 84858b8940
commit 4d321b1cf0

View File

@@ -234,7 +234,8 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) {
bool listAllSuggestions = _filter.isEmpty();
auto &recent(cRecentWriteHashtags());
hrows.reserve(recent.size());
for (const auto &[tag, ratio] : recent) {
for (const auto &item : recent) {
const auto &tag = item.first;
if (!listAllSuggestions
&& (tag.size() == _filter.size()
|| !TextUtilities::RemoveAccents(tag).startsWith(