mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
[CI] No need to capture a variable in a lambda.
Took 32 minutes
This commit is contained in:
parent
9d26e07165
commit
a2dfc22b9e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue