diff options
author | John Preston <johnprestonmail@gmail.com> | 2024-06-30 23:59:03 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2024-06-30 23:59:03 +0400 |
commit | 707951accbd8aa8d698433de9ce5cedbbbe39b9e (patch) | |
tree | cb1991a29ce18322029d4fac1b330fef14a7b924 | |
parent | 7eb98b50ec3d96b8c9119cd6feabf91404e1b66a (diff) |
Version 5.2: Fix build with GCC.v5.2.0
8 files changed, 1 insertions, 22 deletions
diff --git a/Telegram/SourceFiles/api/api_credits.cpp b/Telegram/SourceFiles/api/api_credits.cpp index fb0a4e9c67..356e2cffaf 100644 --- a/Telegram/SourceFiles/api/api_credits.cpp +++ b/Telegram/SourceFiles/api/api_credits.cpp @@ -69,16 +69,6 @@ constexpr auto kTransactionsLimit = 100; }, [](const auto &) { return PeerId(0); }).value; - const auto isBot = [&] { - if (barePeerId) { - if (const auto p = peer->owner().peer(PeerId(barePeerId))) { - if (const auto u = p->asUser()) { - return u->isBot(); - } - } - } - return false; - }(); return Data::CreditsHistoryEntry{ .id = qs(tl.data().vid()), .title = qs(tl.data().vtitle().value_or_empty()), diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 86588f203c..5623bea94a 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -1586,7 +1586,6 @@ void Controller::fillBotBalanceButton() { const auto icon = Ui::CreateChild<Ui::RpWidget>(button); icon->resize(Size(st::menuIconLinks.width() - kSizeShift)); - const auto bg = st::boxBg->c; auto colorized = [&] { auto f = QFile(Ui::Premium::Svg()); if (!f.open(QIODevice::ReadOnly)) { diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 809b6f09f7..0eade94ca0 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -116,7 +116,6 @@ void EditPriceBox( not_null<Main::Session*> session, uint64 price, Fn<void(uint64)> apply) { - const auto owner = &session->data(); box->setTitle(tr::lng_paid_title()); AddSubsectionTitle( box->verticalLayout(), @@ -837,7 +836,6 @@ QImage SendFilesBox::preparePriceTagBg(QSize size) const { bg = QImage(ratio, ratio, QImage::Format_ARGB32_Premultiplied); bg.fill(Qt::black); } - const auto bgSize = bg.size() / bg.devicePixelRatio(); auto result = QImage(size * ratio, QImage::Format_ARGB32_Premultiplied); result.setDevicePixelRatio(ratio); diff --git a/Telegram/SourceFiles/data/data_media_types.cpp b/Telegram/SourceFiles/data/data_media_types.cpp index 72ca05542f..15dfedecd1 100644 --- a/Telegram/SourceFiles/data/data_media_types.cpp +++ b/Telegram/SourceFiles/data/data_media_types.cpp @@ -2008,7 +2008,6 @@ ItemPreview MediaInvoice::toPreview(ToPreviewOptions options) const { return Media::toPreview(options); } auto counts = AlbumCounts(); - const auto item = parent(); auto images = std::vector<ItemPreviewImage>(); auto context = std::vector<std::any>(); const auto existing = options.existing; diff --git a/Telegram/SourceFiles/info/bot/earn/info_earn_inner_widget.cpp b/Telegram/SourceFiles/info/bot/earn/info_earn_inner_widget.cpp index bc6f90e1d0..2b152ad6f8 100644 --- a/Telegram/SourceFiles/info/bot/earn/info_earn_inner_widget.cpp +++ b/Telegram/SourceFiles/info/bot/earn/info_earn_inner_widget.cpp @@ -119,7 +119,6 @@ void InnerWidget::fill() { const auto container = this; const auto &data = _state; const auto multiplier = data.usdRate * Data::kEarnMultiplier; - const auto session = &_peer->session(); auto availableBalanceValue = rpl::single( data.availableBalance @@ -192,7 +191,7 @@ void InnerWidget::fill() { Ui::ToggleChildrenVisibility(line, true); Ui::AddSkip(container); - const auto sub = container->add( + container->add( object_ptr<Ui::FlatLabel>( container, text(), diff --git a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp index 82e020d681..9fea4508c7 100644 --- a/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/earn/info_earn_inner_widget.cpp @@ -281,10 +281,6 @@ void InnerWidget::load() { rpl::lifetime apiPremiumBotLifetime; }; const auto state = lifetime().make_state<State>(_peer); - const auto api = lifetime().make_state<Api::ChannelEarnStatistics>( - _peer->asChannel()); - const auto apiCredits = lifetime().make_state<Api::CreditsEarnStatistics>( - _peer); Info::Statistics::FillLoading( this, diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index e50ffd737f..3f7da1aa37 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -612,7 +612,6 @@ WindowPosition MainWindow::nextInitialChildPosition(SeparateId childId) { const auto adjust = [&](int value) { return (value * 3 / 4); }; - const auto secondaryWithChatsList = !childId.primary() && childId.hasChatsList(); const auto width = OptionNewWindowsSizeAsFirst.value() ? Core::App().settings().windowPosition().w : childId.primary() diff --git a/Telegram/SourceFiles/window/window_controller.cpp b/Telegram/SourceFiles/window/window_controller.cpp index 69bca734fa..8ef614d218 100644 --- a/Telegram/SourceFiles/window/window_controller.cpp +++ b/Telegram/SourceFiles/window/window_controller.cpp @@ -143,7 +143,6 @@ void Controller::showAccount( MsgId singlePeerShowAtMsgId) { Expects(isPrimary() || _id.account == account); - const auto prevAccount = _id.account; const auto prevSession = maybeSession(); const auto prevSessionUniqueId = prevSession ? prevSession->uniqueId() |