From c2d5924508d1258cc303244f458ecc4fef317d9d Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 10 Sep 2024 11:09:59 +0400 Subject: [PATCH] Fix build with MSVC. --- Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp index 7d9e7b220..6111f43b8 100644 --- a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp @@ -98,8 +98,6 @@ void Paint( int radius, int textMaxHeight, int photoSize) { - const auto usualSize = 41; - const auto pixel = std::clamp(qrMaxSize / usualSize, 1, qrPixel); auto hq = PainterHighQualityEnabler(p); p.setPen(Qt::NoPen); p.setBrush(Qt::white); @@ -115,8 +113,6 @@ void Paint( const auto gradientRotationAdd = angle - gradientRotation; const auto center = QPointF(rect::center(qrRect)); - const auto radius = std::sqrt(std::pow(qrRect.width() / 2., 2) - + std::pow(qrRect.height() / 2., 2)); auto back = Images::GenerateGradient( qrRect.size(), backgroundColors, @@ -463,7 +459,6 @@ void FillPeerQrBox( row->resize(size, size); } const auto widget = Ui::CreateChild(row); - const auto widgetState = widget->lifetime().make_state(); widget->setClickedCallback([=] { state->chosen = counter; widget->update();