Fixed build with Xcode.

This commit is contained in:
23rd
2025-12-05 19:50:09 +03:00
committed by John Preston
parent 3aa241d825
commit 25edab4c94
2 changed files with 2 additions and 5 deletions
@@ -583,7 +583,6 @@ void AttributeButton::paintEvent(QPaintEvent *e) {
}
}
auto inset = 0;
const auto progress = _selectedAnimation.value(_selected ? 1. : 0.);
if (progress > 0) {
auto hq = PainterHighQualityEnabler(p);
@@ -599,8 +598,6 @@ void AttributeButton::paintEvent(QPaintEvent *e) {
+ QMarginsF(shift, shift, shift, shift);
const auto radius = st::giftBoxGiftRadius - shift;
p.drawRoundedRect(outer.marginsRemoved(extend), radius, radius);
inset = int(std::ceil(
progress * (thickness * 2 + st::giftBoxUserpicSkip)));
}
const auto paused = !isOver();
@@ -1025,7 +1022,7 @@ void AttributesList::fill() {
target.list.reserve(source.size());
for (const auto &item : source) {
++(value.*field);
target.list.push_back({ .descriptor = item, .value = value });
target.list.emplace_back(Entry{ { item }, { value } });
}
};
addEntries(_attributes->models, _models, &Selection::model);
@@ -798,7 +798,7 @@ void ShowGiftSaleAcceptBox(
AddTransferGiftTable(show, box->verticalLayout(), gift);
gift->value = std::move(taken);
if (const auto raw = gift->value.get()) {
if (gift->value.get()) {
const auto appConfig = &show->session().appConfig();
const auto rule = Ui::LookupCurrencyRule(u"USD"_q);
const auto value = (gift->value->valuePriceUsd > 0 ? 1 : -1)