mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with Xcode and GCC.
This commit is contained in:
parent
b829ed3530
commit
076d5c756a
3 changed files with 1 additions and 4 deletions
|
@ -597,7 +597,6 @@ bool EmojiListWidget::enumerateSections(Callback callback) const {
|
||||||
|
|
||||||
auto i = 0;
|
auto i = 0;
|
||||||
auto info = SectionInfo();
|
auto info = SectionInfo();
|
||||||
const auto session = &controller()->session();
|
|
||||||
const auto next = [&] {
|
const auto next = [&] {
|
||||||
info.rowsCount = info.collapsed
|
info.rowsCount = info.collapsed
|
||||||
? kCollapsedRows
|
? kCollapsedRows
|
||||||
|
@ -789,7 +788,6 @@ void EmojiListWidget::paintEvent(QPaintEvent *e) {
|
||||||
const auto widthForTitle = emojiRight()
|
const auto widthForTitle = emojiRight()
|
||||||
- (st::emojiPanHeaderLeft - st::roundRadiusSmall)
|
- (st::emojiPanHeaderLeft - st::roundRadiusSmall)
|
||||||
- paintButtonGetWidth(p, info, buttonSelected, r);
|
- paintButtonGetWidth(p, info, buttonSelected, r);
|
||||||
const auto skip = st::roundRadiusSmall;
|
|
||||||
if (info.section > 0 && r.top() < info.rowsTop) {
|
if (info.section > 0 && r.top() < info.rowsTop) {
|
||||||
p.setFont(st::emojiPanHeaderFont);
|
p.setFont(st::emojiPanHeaderFont);
|
||||||
p.setPen(st::emojiPanHeaderFg);
|
p.setPen(st::emojiPanHeaderFg);
|
||||||
|
|
|
@ -578,7 +578,6 @@ void StickersListFooter::paintSelectionBg(Painter &p) const {
|
||||||
if (rtl()) {
|
if (rtl()) {
|
||||||
selx = width() - selx - selw;
|
selx = width() - selx - selw;
|
||||||
}
|
}
|
||||||
const auto skip = st::emojiIconSelectSkip;
|
|
||||||
const auto sely = _iconsTop;
|
const auto sely = _iconsTop;
|
||||||
const auto area = st::emojiIconArea;
|
const auto area = st::emojiIconArea;
|
||||||
const auto rect = QRect(
|
const auto rect = QRect(
|
||||||
|
|
|
@ -440,7 +440,7 @@ void Form::processDetails(const MTPDpayments_paymentReceipt &data) {
|
||||||
&& !_thumbnailLoadProcess) {
|
&& !_thumbnailLoadProcess) {
|
||||||
_invoice.cover = Ui::Cover{
|
_invoice.cover = Ui::Cover{
|
||||||
.title = qs(data.vtitle()),
|
.title = qs(data.vtitle()),
|
||||||
.description = qs(data.vdescription()),
|
.description = { qs(data.vdescription()) },
|
||||||
};
|
};
|
||||||
if (const auto web = data.vphoto()) {
|
if (const auto web = data.vphoto()) {
|
||||||
if (const auto photo = _session->data().photoFromWeb(*web, {})) {
|
if (const auto photo = _session->data().photoFromWeb(*web, {})) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue