From 076d5c756af4d82dc648cc28405ce1d8ed6e76b4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 24 Jul 2022 16:27:20 +0300 Subject: [PATCH] Fix build with Xcode and GCC. --- Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp | 2 -- Telegram/SourceFiles/chat_helpers/stickers_list_footer.cpp | 1 - Telegram/SourceFiles/payments/payments_form.cpp | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp index 7833f9ef1a..9412176130 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp @@ -597,7 +597,6 @@ bool EmojiListWidget::enumerateSections(Callback callback) const { auto i = 0; auto info = SectionInfo(); - const auto session = &controller()->session(); const auto next = [&] { info.rowsCount = info.collapsed ? kCollapsedRows @@ -789,7 +788,6 @@ void EmojiListWidget::paintEvent(QPaintEvent *e) { const auto widthForTitle = emojiRight() - (st::emojiPanHeaderLeft - st::roundRadiusSmall) - paintButtonGetWidth(p, info, buttonSelected, r); - const auto skip = st::roundRadiusSmall; if (info.section > 0 && r.top() < info.rowsTop) { p.setFont(st::emojiPanHeaderFont); p.setPen(st::emojiPanHeaderFg); diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_footer.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_footer.cpp index 9e47c9054f..73d3516832 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_footer.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_footer.cpp @@ -578,7 +578,6 @@ void StickersListFooter::paintSelectionBg(Painter &p) const { if (rtl()) { selx = width() - selx - selw; } - const auto skip = st::emojiIconSelectSkip; const auto sely = _iconsTop; const auto area = st::emojiIconArea; const auto rect = QRect( diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp index dd326f7fa8..61f350f081 100644 --- a/Telegram/SourceFiles/payments/payments_form.cpp +++ b/Telegram/SourceFiles/payments/payments_form.cpp @@ -440,7 +440,7 @@ void Form::processDetails(const MTPDpayments_paymentReceipt &data) { && !_thumbnailLoadProcess) { _invoice.cover = Ui::Cover{ .title = qs(data.vtitle()), - .description = qs(data.vdescription()), + .description = { qs(data.vdescription()) }, }; if (const auto web = data.vphoto()) { if (const auto photo = _session->data().photoFromWeb(*web, {})) {