AK: Use Deducing this for OptionalBase

This is taken from and akin to
https://github.com/SerenityOS/serenity/pull/25894
This commit is contained in:
Hendiadyoin1 2025-07-15 00:22:12 +02:00 committed by Jelle Raaijmakers
parent fd4888e800
commit bcd01da91d
Notes: github-actions[bot] 2025-11-20 15:28:30 +00:00
12 changed files with 81 additions and 94 deletions

View file

@ -1271,7 +1271,7 @@ Optional<CalculatedStyleValue::CalculationResult> ClampCalculationNode::run_oper
if (!max_result.has_value())
return {};
auto consistent_type = min_result->type()->consistent_type(center_result->type().value()).map([&](auto& it) { return it.consistent_type(max_result->type().value()); });
auto consistent_type = min_result->type()->consistent_type(center_result->type().value()).map([&](auto&& it) { return it.consistent_type(max_result->type().value()); });
if (!consistent_type.has_value())
return {};