Skip to content

Commit

Permalink
Version 5.10: Fix build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 2, 2025
1 parent c342890 commit 603aa5d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 15 additions & 11 deletions Telegram/SourceFiles/boxes/star_gift_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1936,19 +1936,23 @@ void Controller::rowClicked(not_null<PeerListRow*> row) {
} // namespace

void ChooseStarGiftRecipient(
not_null<Window::SessionController*> controller) {
auto initBox = [=](not_null<PeerListBox*> peersBox) {
peersBox->setTitle(tr::lng_gift_premium_or_stars());
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
};

auto listController = std::make_unique<Controller>(
&controller->session(),
not_null<Window::SessionController*> window) {
auto controller = std::make_unique<Controller>(
&window->session(),
[=](not_null<PeerData*> peer) {
ShowStarGiftBox(controller, peer);
ShowStarGiftBox(window, peer);
});
controller->show(
Box<PeerListBox>(std::move(listController), std::move(initBox)),
const auto controllerRaw = controller.get();
auto initBox = [=](not_null<PeerListBox*> box) {
box->setTitle(tr::lng_gift_premium_or_stars());
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });

box->noSearchSubmits() | rpl::start_with_next([=] {
controllerRaw->noSearchSubmit();
}, box->lifetime());
};
window->show(
Box<PeerListBox>(std::move(controller), std::move(initBox)),
LayerOption::KeepOther);
}

Expand Down
1 change: 0 additions & 1 deletion Telegram/SourceFiles/boxes/transfer_gift_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ void ShowTransferGiftBox(
auto initBox = [=](not_null<PeerListBox*> box) {
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });


box->noSearchSubmits() | rpl::start_with_next([=] {
controllerRaw->noSearchSubmit();
}, box->lifetime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,6 @@ QRect Service::countGeometry() const {
}

void Service::animateReaction(Ui::ReactionFlyAnimationArgs &&args) {
const auto item = data();

auto g = countGeometry();
if (g.width() < 1 || isHidden()) {
return;
Expand Down Expand Up @@ -541,7 +539,6 @@ void Service::draw(Painter &p, const PaintContext &context) const {
}

const auto st = context.st;
auto clip = context.clip;
if (const auto bar = Get<UnreadBar>()) {
auto unreadbarh = bar->height();
auto dateh = 0;
Expand Down

0 comments on commit 603aa5d

Please sign in to comment.