From 813d0501dafde8da484c6f324ddbbfff51ea0f4c Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 31 Jul 2024 17:03:50 +0200 Subject: [PATCH] Fix build on Windows. --- Telegram/SourceFiles/boxes/sticker_set_box.cpp | 8 ++++---- .../SourceFiles/chat_helpers/stickers_list_widget.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index aef0dd941d..d9d3b9a6fb 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -1476,7 +1476,7 @@ void StickerSetBox::Inner::fillDeleteStickerBox( sticker->paintRequest( ) | rpl::start_with_next([=] { auto p = Painter(sticker); - if (const auto strong = weak.get()) { + if (const auto strong = weak.data()) { const auto paused = On(PowerSaving::kStickersPanel) || show->paused(ChatHelpers::PauseReason::Layer); paintSticker(p, index, QPoint(), paused, crl::now()); @@ -1530,14 +1530,14 @@ void StickerSetBox::Inner::fillDeleteStickerBox( Data::StickersType::Stickers); }, [](const auto &) { }); - if (const auto strong = weak.get()) { + if (const auto strong = weak.data()) { applySet(result); } - if (const auto strongBox = weakBox.get()) { + if (const auto strongBox = weakBox.data()) { strongBox->closeBox(); } }).fail([=](const MTP::Error &error) { - if (const auto strongBox = weakBox.get()) { + if (const auto strongBox = weakBox.data()) { strongBox->uiShow()->showToast(error.type()); } }).send(); diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index 4258edbacc..e1e40cc628 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -1735,7 +1735,7 @@ void StickersListWidget::showStickerSetBox( document->owner().stickers().updated( Data::StickersType::Stickers) ) | rpl::start_with_next([=, weak = Ui::MakeWeak(this)] { - if (weak.get()) { + if (weak.data()) { showStickerSetBox(document, setId); } lifetime->destroy();