From 2086deff5c10271ba63299e038786462ce650e10 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:51:23 +0200 Subject: [PATCH] [CI] No need to capture a variable in a lambda. (#7109) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 32 minutes Co-authored-by: Lukas BrĂ¼bach --- 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);