mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +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
Telegram/SourceFiles
data
history/view
storage
|
@ -172,7 +172,7 @@ void EmojiStatuses::requestProfilePhotoGroups() {
|
|||
const auto &data = group.data();
|
||||
auto emoticons = ranges::views::all(
|
||||
data.vemoticons().v
|
||||
) | ranges::view::transform([](const MTPstring &emoticon) {
|
||||
) | ranges::views::transform([](const MTPstring &emoticon) {
|
||||
return qs(emoticon);
|
||||
}) | ranges::to_vector;
|
||||
result.push_back({
|
||||
|
|
|
@ -523,9 +523,9 @@ void BottomInfo::layoutReactionsText() {
|
|||
_reactions.clear();
|
||||
return;
|
||||
}
|
||||
auto sorted = ranges::view::all(
|
||||
auto sorted = ranges::views::all(
|
||||
_data.reactions
|
||||
) | ranges::view::transform([](const MessageReaction &reaction) {
|
||||
) | ranges::views::transform([](const MessageReaction &reaction) {
|
||||
return not_null{ &reaction };
|
||||
}) | ranges::to_vector;
|
||||
ranges::sort(
|
||||
|
|
|
@ -111,9 +111,9 @@ void InlineList::layoutButtons() {
|
|||
_buttons.clear();
|
||||
return;
|
||||
}
|
||||
auto sorted = ranges::view::all(
|
||||
auto sorted = ranges::views::all(
|
||||
_data.reactions
|
||||
) | ranges::view::transform([](const MessageReaction &reaction) {
|
||||
) | ranges::views::transform([](const MessageReaction &reaction) {
|
||||
return not_null{ &reaction };
|
||||
}) | ranges::to_vector;
|
||||
const auto &list = _owner->list(::Data::Reactions::Type::All);
|
||||
|
@ -643,7 +643,7 @@ InlineListData InlineListDataFromMessage(not_null<Message*> message) {
|
|||
result.recent.reserve(recent.size());
|
||||
for (const auto &[id, list] : recent) {
|
||||
result.recent.emplace(id).first->second = list
|
||||
| ranges::view::transform(&Data::RecentReaction::peer)
|
||||
| ranges::views::transform(&Data::RecentReaction::peer)
|
||||
| ranges::to_vector;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -220,9 +220,9 @@ void Controller::showReaction(const ReactionId &reaction) {
|
|||
appendRow(peer, reaction);
|
||||
}
|
||||
} else {
|
||||
_filtered = _all | ranges::view::filter([&](const AllEntry &entry) {
|
||||
_filtered = _all | ranges::views::filter([&](const AllEntry &entry) {
|
||||
return (entry.second == reaction);
|
||||
}) | ranges::view::transform(
|
||||
}) | ranges::views::transform(
|
||||
&AllEntry::first
|
||||
) | ranges::to_vector;
|
||||
for (const auto peer : _filtered) {
|
||||
|
|
|
@ -1053,7 +1053,7 @@ void FileLoadTask::process(Args &&args) {
|
|||
if (image->modifications.paint) {
|
||||
const auto documents = ExtractStickersFromScene(image);
|
||||
_result->attachedStickers = documents
|
||||
| ranges::view::transform(&DocumentData::mtpInput)
|
||||
| ranges::views::transform(&DocumentData::mtpInput)
|
||||
| ranges::to_vector;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue