From 2afc171bec78e9cb22d180f5cc8b978f12a911ce Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 10 Nov 2023 00:32:52 +0400 Subject: [PATCH] Version 4.11.6: Fix build with GCC. --- Telegram/SourceFiles/boxes/gift_premium_box.cpp | 2 +- .../SourceFiles/info/boosts/info_boosts_inner_widget.cpp | 2 -- Telegram/SourceFiles/ui/boxes/boost_box.cpp | 7 +------ 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/boxes/gift_premium_box.cpp b/Telegram/SourceFiles/boxes/gift_premium_box.cpp index 96196bc11..1244964d2 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 84b7cad52..34e0d926f 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 633cb3e1f..83bd4fa37 100644 --- a/Telegram/SourceFiles/ui/boxes/boost_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/boost_box.cpp @@ -24,7 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL 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(),