Apply clang-tidy fixes (mostly use designated initializers) (#3328)

This commit is contained in:
Bart Louwers
2025-03-21 15:42:43 +01:00
committed by GitHub
parent e069889f71
commit b7823b27b6
47 changed files with 505 additions and 465 deletions

View File

@@ -6,6 +6,8 @@
#include <mbgl/style/expression/step.hpp>
#include <mbgl/style/expression/value.hpp>
#include <algorithm>
namespace mbgl {
namespace gfx {
@@ -53,7 +55,7 @@ auto addStop(UniqueGPUExpression& expr, GPUOutputType outType, std::size_t& inde
assert(value.is<Color>());
if (value.is<Color>()) {
const auto& color = attributeValue(value.get<Color>());
std::copy(color.begin(), color.end(), &expr->stops.colors[2 * index++]);
std::ranges::copy(color, &expr->stops.colors[2 * index++]);
} else {
// Evaluation error, cancel
expr.reset();