From 168cdaf35042c36661a08cd3255d3ddd3930d8fe Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 26 Dec 2022 14:26:49 +0400 Subject: [PATCH] Fix build with GCC. --- Telegram/SourceFiles/history/history_item.cpp | 1 - Telegram/SourceFiles/history/view/media/history_view_gif.cpp | 1 - Telegram/SourceFiles/ui/effects/reaction_fly_animation.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index f24843524..bbeaf9431 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -4070,7 +4070,6 @@ void HistoryItem::setSelfDestruct(HistoryServiceSelfDestruct::Type type, int ttl PreparedServiceText HistoryItem::prepareInvitedToCallText( const std::vector> &users, CallId linkCallId) { - const auto owner = &_history->owner(); auto chatText = tr::lng_action_invite_user_chat( tr::now, Ui::Text::WithEntities); diff --git a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp index e1a267e4c..bc4078da5 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp @@ -846,7 +846,6 @@ void Gif::validateSpoilerImageCache( Qt::SmoothTransformation)); return &*container; }; - const auto videothumb = _videoThumbnailFrame.get(); const auto embedded = _dataMedia->thumbnailInline(); const auto blurred = embedded ? embedded : downscale(normal); _spoiler->background = Images::Round( diff --git a/Telegram/SourceFiles/ui/effects/reaction_fly_animation.cpp b/Telegram/SourceFiles/ui/effects/reaction_fly_animation.cpp index 0366667b3..5d8c6b0a6 100644 --- a/Telegram/SourceFiles/ui/effects/reaction_fly_animation.cpp +++ b/Telegram/SourceFiles/ui/effects/reaction_fly_animation.cpp @@ -227,7 +227,6 @@ void ReactionFlyAnimation::paintMiniCopies( } auto hq = PainterHighQualityEnabler(p); const auto size = QSize(_customSize, _customSize); - const auto preview = QColor(0, 0, 0, 0); const auto progress = _minis.value(1.); const auto middle = center - QPoint(_customSize / 2, _customSize / 2); const auto scaleIn = kMiniCopiesScaleInDuration