Fix build with Xcode.

This commit is contained in:
John Preston 2023-01-18 12:00:29 +04:00
parent 554f66f089
commit ea4e2f0952
3 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ private:
ChatAdminRights rights,
std::vector<std::pair<Flag, tr::phrase<>>> phrases) {
auto list = QStringList();
for (const auto [flag, phrase] : phrases) {
for (const auto &[flag, phrase] : phrases) {
if (rights & flag) {
list.push_back(phrase(tr::now));
}

View file

@ -470,7 +470,6 @@ void SendFilesBox::refreshAllAfterChanges(int fromItem, Fn<void()> perform) {
void SendFilesBox::openDialogToAddFileToAlbum() {
const auto toastParent = Ui::BoxShow(this).toastParent();
const auto checkResult = [=](const Ui::PreparedList &list) {
if (_check)
if (!(_limits & SendFilesAllow::OnlyOne)) {
return true;
} else if (!_list.canBeSentInSlowmodeWith(list)) {

View file

@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "apiwrap.h" // ApiWrap::updateStickers()
#include "core/application.h"
#include "data/data_chat_participant_status.h" // Data::CanSendAnyOf.
#include "data/data_forum_topic.h"
#include "data/data_session.h"
#include "data/stickers/data_stickers.h" // Stickers::setsRef()
#include "main/main_domain.h"