Fix build with Xcode and GCC.

This commit is contained in:
John Preston 2022-07-24 16:27:20 +03:00
parent b829ed3530
commit 076d5c756a
3 changed files with 1 additions and 4 deletions

View File

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

View File

@ -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(

View File

@ -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, {})) {