From 9360f1f9707a54b6e110f8680f1fffed878b6b42 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 26 Nov 2021 23:51:47 +0400 Subject: [PATCH] Beta version 3.2.6: Fix build on macOS. --- .../SourceFiles/history/view/history_view_list_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp index e0316f99f8..78ee5c917b 100644 --- a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp @@ -1191,7 +1191,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const { if (hasCopyRestriction()) { return true; } - for (const auto [itemId, selection] : _selected) { + for (const auto &[itemId, selection] : _selected) { if (const auto item = session().data().message(itemId)) { if (item->forbidsForward()) { return true; @@ -1202,7 +1202,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const { } bool ListWidget::showCopyRestrictionForSelected() { - for (const auto [itemId, selection] : _selected) { + for (const auto &[itemId, selection] : _selected) { if (showCopyRestriction(session().data().message(itemId))) { return true; }