mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Fix crash in Clang in Xcode 10.2.
This commit is contained in:
@@ -234,7 +234,8 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) {
|
|||||||
bool listAllSuggestions = _filter.isEmpty();
|
bool listAllSuggestions = _filter.isEmpty();
|
||||||
auto &recent(cRecentWriteHashtags());
|
auto &recent(cRecentWriteHashtags());
|
||||||
hrows.reserve(recent.size());
|
hrows.reserve(recent.size());
|
||||||
for (const auto &[tag, ratio] : recent) {
|
for (const auto &item : recent) {
|
||||||
|
const auto &tag = item.first;
|
||||||
if (!listAllSuggestions
|
if (!listAllSuggestions
|
||||||
&& (tag.size() == _filter.size()
|
&& (tag.size() == _filter.size()
|
||||||
|| !TextUtilities::RemoveAccents(tag).startsWith(
|
|| !TextUtilities::RemoveAccents(tag).startsWith(
|
||||||
|
Reference in New Issue
Block a user