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
1 changed files with 2 additions and 1 deletions

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(