From 8c9d3b30cf62016ffb03e425f1e7e3f2461262bf Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 18 Jun 2024 22:58:33 +0200 Subject: [PATCH] LibWeb/CSS: Avoid capturing structured binding in generic lambda Apple Clang doesn't like this, rather than waiting for their version of random-clang-commit-to-call-a-release to catch up with llvm trunk, just work around the issue. Fixes #186. --- .../Libraries/LibWeb/CSS/StyleValues/EasingStyleValue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/EasingStyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValues/EasingStyleValue.cpp index 5dceeafcfd7..511c65a3278 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValues/EasingStyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValues/EasingStyleValue.cpp @@ -116,8 +116,8 @@ double EasingStyleValue::Function::evaluate_at(double input_progress, bool befor auto x = input_progress; auto solve = [&](auto t) { - auto x = cubic_bezier_at(x1, x2, t); - auto y = cubic_bezier_at(y1, y2, t); + auto x = cubic_bezier_at(bezier.x1, bezier.x2, t); + auto y = cubic_bezier_at(bezier.y1, bezier.y2, t); return CubicBezier::CachedSample { x, y, t }; };