Apply clang-tidy fixes (mostly use designated initializers) (#3328)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user