Beta version 3.2.6: Fix build on macOS.

This commit is contained in:
John Preston 2021-11-26 23:51:47 +04:00
parent 57340f9514
commit 9360f1f970
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}