2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix build with GCC.

This commit is contained in:
John Preston
2022-11-02 08:51:03 +04:00
parent 45cacc94c0
commit fdf4129e5e
28 changed files with 28 additions and 64 deletions

View File

@@ -485,7 +485,6 @@ void Filler::addTogglePin() {
}
const auto controller = _controller;
const auto filterId = _request.filterId;
const auto peer = _peer;
const auto thread = _request.key.thread();
if (!thread || thread->fixedOnTopIndex()) {
return;
@@ -501,7 +500,7 @@ void Filler::addTogglePin() {
TogglePinnedThread(controller, strong, filterId);
}
};
const auto pinAction = _addAction(
_addAction(
pinText(),
pinToggle,
(thread->isPinnedDialog(filterId)
@@ -1684,25 +1683,21 @@ QPointer<Ui::BoxContent> ShowDropMediaBox(
callback();
}
};
auto initBox = [](not_null<PeerListBox*> box) {
box->addButton(tr::lng_cancel(), [box] {
auto initBox = [=](not_null<PeerListBox*> box) {
box->addButton(tr::lng_cancel(), [=] {
box->closeBox();
});
forum->destroyed(
) | rpl::start_with_next([=] {
box->closeBox();
}, box->lifetime());
};
*weak = navigation->parentController()->show(Box<PeerListBox>(
std::make_unique<ChooseTopicBoxController>(
forum,
std::move(chosen)),
[=](not_null<PeerListBox*> box) {
box->addButton(tr::lng_cancel(), [=] {
box->closeBox();
});
forum->destroyed(
) | rpl::start_with_next([=] {
box->closeBox();
}, box->lifetime());
}));
std::move(initBox)));
return weak->data();
}