mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix range-v3 deprecation warnings
This commit is contained in:
parent
1940edd6ee
commit
c65b45460b
5 changed files with 9 additions and 9 deletions
|
@ -172,7 +172,7 @@ void EmojiStatuses::requestProfilePhotoGroups() {
|
||||||
const auto &data = group.data();
|
const auto &data = group.data();
|
||||||
auto emoticons = ranges::views::all(
|
auto emoticons = ranges::views::all(
|
||||||
data.vemoticons().v
|
data.vemoticons().v
|
||||||
) | ranges::view::transform([](const MTPstring &emoticon) {
|
) | ranges::views::transform([](const MTPstring &emoticon) {
|
||||||
return qs(emoticon);
|
return qs(emoticon);
|
||||||
}) | ranges::to_vector;
|
}) | ranges::to_vector;
|
||||||
result.push_back({
|
result.push_back({
|
||||||
|
|
|
@ -523,9 +523,9 @@ void BottomInfo::layoutReactionsText() {
|
||||||
_reactions.clear();
|
_reactions.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto sorted = ranges::view::all(
|
auto sorted = ranges::views::all(
|
||||||
_data.reactions
|
_data.reactions
|
||||||
) | ranges::view::transform([](const MessageReaction &reaction) {
|
) | ranges::views::transform([](const MessageReaction &reaction) {
|
||||||
return not_null{ &reaction };
|
return not_null{ &reaction };
|
||||||
}) | ranges::to_vector;
|
}) | ranges::to_vector;
|
||||||
ranges::sort(
|
ranges::sort(
|
||||||
|
|
|
@ -111,9 +111,9 @@ void InlineList::layoutButtons() {
|
||||||
_buttons.clear();
|
_buttons.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto sorted = ranges::view::all(
|
auto sorted = ranges::views::all(
|
||||||
_data.reactions
|
_data.reactions
|
||||||
) | ranges::view::transform([](const MessageReaction &reaction) {
|
) | ranges::views::transform([](const MessageReaction &reaction) {
|
||||||
return not_null{ &reaction };
|
return not_null{ &reaction };
|
||||||
}) | ranges::to_vector;
|
}) | ranges::to_vector;
|
||||||
const auto &list = _owner->list(::Data::Reactions::Type::All);
|
const auto &list = _owner->list(::Data::Reactions::Type::All);
|
||||||
|
@ -643,7 +643,7 @@ InlineListData InlineListDataFromMessage(not_null<Message*> message) {
|
||||||
result.recent.reserve(recent.size());
|
result.recent.reserve(recent.size());
|
||||||
for (const auto &[id, list] : recent) {
|
for (const auto &[id, list] : recent) {
|
||||||
result.recent.emplace(id).first->second = list
|
result.recent.emplace(id).first->second = list
|
||||||
| ranges::view::transform(&Data::RecentReaction::peer)
|
| ranges::views::transform(&Data::RecentReaction::peer)
|
||||||
| ranges::to_vector;
|
| ranges::to_vector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,9 +220,9 @@ void Controller::showReaction(const ReactionId &reaction) {
|
||||||
appendRow(peer, reaction);
|
appendRow(peer, reaction);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_filtered = _all | ranges::view::filter([&](const AllEntry &entry) {
|
_filtered = _all | ranges::views::filter([&](const AllEntry &entry) {
|
||||||
return (entry.second == reaction);
|
return (entry.second == reaction);
|
||||||
}) | ranges::view::transform(
|
}) | ranges::views::transform(
|
||||||
&AllEntry::first
|
&AllEntry::first
|
||||||
) | ranges::to_vector;
|
) | ranges::to_vector;
|
||||||
for (const auto peer : _filtered) {
|
for (const auto peer : _filtered) {
|
||||||
|
|
|
@ -1053,7 +1053,7 @@ void FileLoadTask::process(Args &&args) {
|
||||||
if (image->modifications.paint) {
|
if (image->modifications.paint) {
|
||||||
const auto documents = ExtractStickersFromScene(image);
|
const auto documents = ExtractStickersFromScene(image);
|
||||||
_result->attachedStickers = documents
|
_result->attachedStickers = documents
|
||||||
| ranges::view::transform(&DocumentData::mtpInput)
|
| ranges::views::transform(&DocumentData::mtpInput)
|
||||||
| ranges::to_vector;
|
| ranges::to_vector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue