mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
This commit is contained in:
@@ -664,7 +664,7 @@ QString ChannelData::invitePeekHash() const {
|
||||
void ChannelData::privateErrorReceived() {
|
||||
if (const auto expires = invitePeekExpires()) {
|
||||
const auto hash = invitePeekHash();
|
||||
for (const auto window : session().windows()) {
|
||||
for (const auto &window : session().windows()) {
|
||||
clearInvitePeek();
|
||||
Api::CheckChatInvite(window, hash, this);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user