mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Apply autofixes from clazy
This commit is contained in:
@@ -51,7 +51,7 @@ JoinedByLinkSlice ParseJoinedByLinkSlice(
|
||||
owner.processUsers(data.vusers());
|
||||
result.count = data.vcount().v;
|
||||
result.users.reserve(data.vimporters().v.size());
|
||||
for (const auto importer : data.vimporters().v) {
|
||||
for (const auto &importer : data.vimporters().v) {
|
||||
importer.match([&](const MTPDchatInviteImporter &data) {
|
||||
result.users.push_back({
|
||||
.user = owner.user(data.vuser_id().v),
|
||||
|
||||
@@ -242,7 +242,7 @@ Updates::Updates(not_null<Main::Session*> session)
|
||||
}) | rpl::start_with_next([=](not_null<PeerData*> peer) {
|
||||
if (const auto list = _pendingSpeakingCallParticipants.take(peer)) {
|
||||
if (const auto call = peer->groupCall()) {
|
||||
for (const auto [participantPeerId, when] : *list) {
|
||||
for (const auto &[participantPeerId, when] : *list) {
|
||||
call->applyActiveUpdate(
|
||||
participantPeerId,
|
||||
Data::LastSpokeTimes{
|
||||
|
||||
Reference in New Issue
Block a user