Skip to content

Commit

Permalink
Version 4.11.6: Fix build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 9, 2023
1 parent d6bd88d commit 2afc171
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/boxes/gift_premium_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ void GiftCodePendingBox(

AddTable(box->verticalLayout(), controller, data, true);

const auto footer = box->addRow(
box->addRow(
object_ptr<Ui::FlatLabel>(
box,
tr::lng_gift_link_pending_footer(),
Expand Down
2 changes: 0 additions & 2 deletions Telegram/SourceFiles/info/boosts/info_boosts_inner_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ void FillShareLink(

label->clicks(
) | rpl::start_with_next(copyLink, label->lifetime());
const auto copyShareWrap = content->add(
object_ptr<Ui::VerticalLayout>(content));
{
const auto wrap = content->add(
object_ptr<Ui::FixedHeightWidget>(
Expand Down
7 changes: 1 addition & 6 deletions Telegram/SourceFiles/ui/boxes/boost_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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<State>();

FillBoostLimit(
BoxShowFinishes(box),
box->verticalLayout(),
Expand Down

0 comments on commit 2afc171

Please sign in to comment.