diff --git a/Telegram/SourceFiles/boxes/gift_premium_box.cpp b/Telegram/SourceFiles/boxes/gift_premium_box.cpp index 96196bc11938a0..1244964d2e8c31 100644 --- a/Telegram/SourceFiles/boxes/gift_premium_box.cpp +++ b/Telegram/SourceFiles/boxes/gift_premium_box.cpp @@ -692,7 +692,7 @@ void GiftCodePendingBox( AddTable(box->verticalLayout(), controller, data, true); - const auto footer = box->addRow( + box->addRow( object_ptr( box, tr::lng_gift_link_pending_footer(), diff --git a/Telegram/SourceFiles/info/boosts/info_boosts_inner_widget.cpp b/Telegram/SourceFiles/info/boosts/info_boosts_inner_widget.cpp index 84b7cad5249788..34e0d926fffa71 100644 --- a/Telegram/SourceFiles/info/boosts/info_boosts_inner_widget.cpp +++ b/Telegram/SourceFiles/info/boosts/info_boosts_inner_widget.cpp @@ -184,8 +184,6 @@ void FillShareLink( label->clicks( ) | rpl::start_with_next(copyLink, label->lifetime()); - const auto copyShareWrap = content->add( - object_ptr(content)); { const auto wrap = content->add( object_ptr( diff --git a/Telegram/SourceFiles/ui/boxes/boost_box.cpp b/Telegram/SourceFiles/ui/boxes/boost_box.cpp index 633cb3e1fa6929..83bd4fa37843e1 100644 --- a/Telegram/SourceFiles/ui/boxes/boost_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/boost_box.cpp @@ -24,7 +24,7 @@ For license and copyright information please follow this link: namespace Ui { namespace { -[[nodiscrd]] BoostCounters AdjustByReached(BoostCounters data) { +[[nodiscard]] BoostCounters AdjustByReached(BoostCounters data) { const auto exact = (data.boosts == data.thisLevelBoosts); const auto reached = !data.nextLevelBoosts || (exact && data.mine > 0); if (reached) { @@ -465,11 +465,6 @@ void AskBoostBox( box->setWidth(st::boxWideWidth); box->setStyle(st::boostBox); - struct State { - bool submitted = false; - }; - const auto state = box->lifetime().make_state(); - FillBoostLimit( BoxShowFinishes(box), box->verticalLayout(),