2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Fix build on macOS and Linux.

This commit is contained in:
John Preston
2019-04-09 15:17:29 +04:00
parent b5be6df5e2
commit fe3181649b
7 changed files with 14 additions and 12 deletions

View File

@@ -762,8 +762,9 @@ struct FormattingAction {
QString ExpandCustomLinks(const TextWithTags &text) {
const auto entities = ConvertTextTagsToEntities(text.tags);
auto &&urls = ranges::view::all(
entities
auto &&urls = ranges::make_iterator_range(
entities.begin(),
entities.end()
) | ranges::view::filter([](const EntityInText &entity) {
return entity.type() == EntityType::CustomUrl;
});