style: clang mass formatting

This commit is contained in:
Constrat
2025-04-17 09:32:58 +02:00
parent 4761f1690e
commit f33fcc4ce5
17 changed files with 72 additions and 76 deletions

View File

@@ -205,14 +205,10 @@ bool asst::BattleHelper::update_deployment_(
re_matcher.set_task_info("BattleAvatarReMatch");
re_matcher.set_templ(oper.avatar);
if (re_matcher.analyze()) {
if (const auto& results = re_matcher.get_result();
!results.empty()) {
if (const auto& results = re_matcher.get_result(); !results.empty()) {
// 遍历结果,找到 y 最小的(之前选中的) rect
auto min_rect_iter =
ranges::min_element(
results, [](const auto& a, const auto& b) {
return a.rect.y < b.rect.y;
});
ranges::min_element(results, [](const auto& a, const auto& b) { return a.rect.y < b.rect.y; });
oper_rect = min_rect_iter->rect;
}