Version 4.11.6: Fix build with GCC.

This commit is contained in:
John Preston 2023-11-10 00:32:52 +04:00
parent d6bd88d119
commit 2afc171bec
3 changed files with 2 additions and 9 deletions

View File

@ -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(),

View File

@ -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>(

View File

@ -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<State>();
FillBoostLimit(
BoxShowFinishes(box),
box->verticalLayout(),