diff --git a/Telegram/SourceFiles/boxes/star_gift_preview_box.cpp b/Telegram/SourceFiles/boxes/star_gift_preview_box.cpp index fe754275db..2b33621450 100644 --- a/Telegram/SourceFiles/boxes/star_gift_preview_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_preview_box.cpp @@ -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); diff --git a/Telegram/SourceFiles/boxes/transfer_gift_box.cpp b/Telegram/SourceFiles/boxes/transfer_gift_box.cpp index b8130f7f4c..ee1add5ea8 100644 --- a/Telegram/SourceFiles/boxes/transfer_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/transfer_gift_box.cpp @@ -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)