update linux-ci to Ubuntu 24.04, apply clang-tidy fixes (#3998)

This commit is contained in:
Bart Louwers
2025-12-11 21:56:24 +01:00
committed by GitHub
parent 83d34c3a17
commit 5882a9c94e
117 changed files with 927 additions and 825 deletions

View File

@@ -1,6 +1,8 @@
#include <mbgl/test/util.hpp>
#include <mbgl/algorithm/update_tile_masks.hpp>
#include <algorithm>
using namespace mbgl;
namespace {
@@ -23,7 +25,7 @@ bool operator==(const FakeTile& lhs, const FakeTile& rhs) {
void validate(std::map<UnwrappedTileID, FakeTile> expected) {
auto actual = expected;
std::for_each(actual.begin(), actual.end(), [](auto& renderable) { renderable.second.mask.clear(); });
std::ranges::for_each(actual, [](auto& renderable) { renderable.second.mask.clear(); });
algorithm::updateTileMasks(actual);
EXPECT_EQ(expected, actual);