Skip to content

Commit 603aa5d

Browse files
committed
Version 5.10: Fix build with GCC.
1 parent c342890 commit 603aa5d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Telegram/SourceFiles/boxes/star_gift_box.cpp

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,19 +1936,23 @@ void Controller::rowClicked(not_null<PeerListRow*> row) {
19361936
} // namespace
19371937

19381938
void ChooseStarGiftRecipient(
1939-
not_null<Window::SessionController*> controller) {
1940-
auto initBox = [=](not_null<PeerListBox*> peersBox) {
1941-
peersBox->setTitle(tr::lng_gift_premium_or_stars());
1942-
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
1943-
};
1944-
1945-
auto listController = std::make_unique<Controller>(
1946-
&controller->session(),
1939+
not_null<Window::SessionController*> window) {
1940+
auto controller = std::make_unique<Controller>(
1941+
&window->session(),
19471942
[=](not_null<PeerData*> peer) {
1948-
ShowStarGiftBox(controller, peer);
1943+
ShowStarGiftBox(window, peer);
19491944
});
1950-
controller->show(
1951-
Box<PeerListBox>(std::move(listController), std::move(initBox)),
1945+
const auto controllerRaw = controller.get();
1946+
auto initBox = [=](not_null<PeerListBox*> box) {
1947+
box->setTitle(tr::lng_gift_premium_or_stars());
1948+
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
1949+
1950+
box->noSearchSubmits() | rpl::start_with_next([=] {
1951+
controllerRaw->noSearchSubmit();
1952+
}, box->lifetime());
1953+
};
1954+
window->show(
1955+
Box<PeerListBox>(std::move(controller), std::move(initBox)),
19521956
LayerOption::KeepOther);
19531957
}
19541958

Telegram/SourceFiles/boxes/transfer_gift_box.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ void ShowTransferGiftBox(
406406
auto initBox = [=](not_null<PeerListBox*> box) {
407407
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
408408

409-
410409
box->noSearchSubmits() | rpl::start_with_next([=] {
411410
controllerRaw->noSearchSubmit();
412411
}, box->lifetime());

Telegram/SourceFiles/history/view/history_view_service_message.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,6 @@ QRect Service::countGeometry() const {
432432
}
433433

434434
void Service::animateReaction(Ui::ReactionFlyAnimationArgs &&args) {
435-
const auto item = data();
436-
437435
auto g = countGeometry();
438436
if (g.width() < 1 || isHidden()) {
439437
return;
@@ -541,7 +539,6 @@ void Service::draw(Painter &p, const PaintContext &context) const {
541539
}
542540

543541
const auto st = context.st;
544-
auto clip = context.clip;
545542
if (const auto bar = Get<UnreadBar>()) {
546543
auto unreadbarh = bar->height();
547544
auto dateh = 0;

0 commit comments

Comments
 (0)