mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Explicitly specify QVector element type to fix build with clang13+range-v3+qt6
Same story as 2b383a4
for #24014.
Fixes 4.8.0 build on OpenBSD/amd64 7.3 with clang 13.0.0, range-v3 0.12.0 and Qt 6.5.0.
This commit is contained in:
parent
3825586715
commit
11906297d8
4 changed files with 5 additions and 5 deletions
|
@ -227,7 +227,7 @@ void ImportInvite(
|
|||
};
|
||||
auto inputs = peers | ranges::views::transform([](auto peer) {
|
||||
return MTPInputPeer(peer->input);
|
||||
}) | ranges::to<QVector>();
|
||||
}) | ranges::to<QVector<MTPInputPeer>>();
|
||||
if (!slug.isEmpty()) {
|
||||
api->request(MTPchatlists_JoinChatlistInvite(
|
||||
MTP_string(slug),
|
||||
|
|
|
@ -1028,7 +1028,7 @@ void ExportFilterLink(
|
|||
const auto session = &front->session();
|
||||
auto mtpPeers = peers | ranges::views::transform(
|
||||
[](not_null<PeerData*> peer) { return MTPInputPeer(peer->input); }
|
||||
) | ranges::to<QVector>();
|
||||
) | ranges::to<QVector<MTPInputPeer>>();
|
||||
session->api().request(MTPchatlists_ExportChatlistInvite(
|
||||
MTP_inputChatlistDialogFilter(MTP_int(id)),
|
||||
MTP_string(), // title
|
||||
|
@ -1061,7 +1061,7 @@ void EditLinkChats(
|
|||
const auto session = &front->session();
|
||||
auto mtpPeers = peers | ranges::views::transform(
|
||||
[](not_null<PeerData*> peer) { return MTPInputPeer(peer->input); }
|
||||
) | ranges::to<QVector>();
|
||||
) | ranges::to<QVector<MTPInputPeer>>();
|
||||
session->api().request(MTPchatlists_EditExportedInvite(
|
||||
MTP_flags(MTPchatlists_EditExportedInvite::Flag::f_peers),
|
||||
MTP_inputChatlistDialogFilter(MTP_int(link.id)),
|
||||
|
|
|
@ -696,7 +696,7 @@ void FilterRowButton::paintEvent(QPaintEvent *e) {
|
|||
row.removePeers
|
||||
) | ranges::views::transform([](not_null<PeerData*> peer) {
|
||||
return MTPInputPeer(peer->input);
|
||||
}) | ranges::to<QVector>();
|
||||
}) | ranges::to<QVector<MTPInputPeer>>();
|
||||
removeChatlistRequests.push_back(
|
||||
MTPchatlists_LeaveChatlist(
|
||||
MTP_inputChatlistDialogFilter(MTP_int(newId)),
|
||||
|
|
|
@ -494,7 +494,7 @@ void FiltersMenu::remove(
|
|||
leave
|
||||
) | ranges::views::transform([](not_null<PeerData*> peer) {
|
||||
return MTPInputPeer(peer->input);
|
||||
}) | ranges::to<QVector>())
|
||||
}) | ranges::to<QVector<MTPInputPeer>>())
|
||||
)).done([=](const MTPUpdates &result) {
|
||||
api->applyUpdates(result);
|
||||
}).send();
|
||||
|
|
Loading…
Add table
Reference in a new issue