From 75f542747dda8453bd1f3359db96eecd68e7e36e Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Jul 2023 20:12:41 +0400 Subject: [PATCH] Fix build with GCC. --- Telegram/SourceFiles/dialogs/dialogs_row.cpp | 3 --- Telegram/SourceFiles/dialogs/ui/dialogs_stories_list.cpp | 1 - Telegram/SourceFiles/media/stories/media_stories_header.cpp | 1 - Telegram/SourceFiles/ui/effects/outline_segments.cpp | 1 - 4 files changed, 6 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_row.cpp b/Telegram/SourceFiles/dialogs/dialogs_row.cpp index f8d748d0da..c937f10f2f 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_row.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_row.cpp @@ -360,15 +360,12 @@ void Row::PaintCornerBadgeFrame( if (storiesCount) { q.restore(); - const auto st = context.st; const auto outline = QRectF(0, 0, photoSize, photoSize); const auto storiesUnreadCount = data->storiesUnreadCount; const auto storiesUnreadBrush = [&] { if (context.active || !storiesUnreadCount) { return st::dialogsUnreadBgMutedActive->b; } - const auto left = st->padding.left(); - const auto top = st->padding.top(); auto gradient = Ui::UnreadStoryOutlineGradient(outline); return QBrush(gradient); }(); diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_stories_list.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_stories_list.cpp index a1c6f452b2..b09083ed76 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_stories_list.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_stories_list.cpp @@ -233,7 +233,6 @@ List::Layout List::computeLayout(float64 expanded) const { const auto smallCount = std::min( kSmallThumbsShown, itemsCount - smallSkip); - const auto smallWidth = st.photo + (smallCount - 1) * st.shift; const auto leftSmall = st.left - (smallSkip ? st.shift : 0); const auto leftFull = full.left - _scrollLeft + skipSide; const auto startIndexFull = std::max(-leftFull, 0) / singleFull; diff --git a/Telegram/SourceFiles/media/stories/media_stories_header.cpp b/Telegram/SourceFiles/media/stories/media_stories_header.cpp index d0b988cb53..5b35ec1c7b 100644 --- a/Telegram/SourceFiles/media/stories/media_stories_header.cpp +++ b/Telegram/SourceFiles/media/stories/media_stories_header.cpp @@ -566,7 +566,6 @@ void Header::rebuildVolumeControls( }); slider->setValue(_controller->currentVolume()); - const auto skip = button->width() / 2; const auto size = button->width() + st::storiesVolumeSize + st::storiesVolumeBottom; diff --git a/Telegram/SourceFiles/ui/effects/outline_segments.cpp b/Telegram/SourceFiles/ui/effects/outline_segments.cpp index 5b302056be..7d4dd47fac 100644 --- a/Telegram/SourceFiles/ui/effects/outline_segments.cpp +++ b/Telegram/SourceFiles/ui/effects/outline_segments.cpp @@ -30,7 +30,6 @@ void PaintOutlineSegments( : (full / (count * 1.1)); const auto left = full - (separator * count); const auto length = left / float64(count); - const auto step = length + separator; const auto spin = separator * (1. - fromFullProgress); auto start = 0. + (arc::kQuarterLength + (separator / 2)) + (3. * spin);