From a2dfc22b9eed5417884be1180b100dbde77c36ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 13 Aug 2026 20:20:09 +0200 Subject: [PATCH] [CI] No need to capture a variable in a lambda. Took 32 minutes --- cockatrice/src/game_graphics/player/player_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/game_graphics/player/player_target.cpp b/cockatrice/src/game_graphics/player/player_target.cpp index 105a4a862..910ee9c17 100644 --- a/cockatrice/src/game_graphics/player/player_target.cpp +++ b/cockatrice/src/game_graphics/player/player_target.cpp @@ -29,7 +29,7 @@ void PlayerCounter::paint(QPainter *painter, const QStyleOptionGraphicsItem * /* // The box is drawn with a border-wide stroke straddling the path, so the // visible outline spans [inset, inset + border]. Fills that must not cover // the outline (e.g. the life-change flash) use a path inset by `border`. - const auto makePath = [radius](qreal inset) { + const auto makePath = [](qreal inset) { QPainterPath path(QPointF(50 - inset, inset)); path.lineTo(radius, inset); path.arcTo(inset, inset, 2 * radius, 2 * radius, 90, 90);