Commit b6477c2e authored by Kamal Marhubi's avatar Kamal Marhubi

Use kj::indices and range for loop for consitency

parent 26820a92
......@@ -440,7 +440,7 @@ public:
output.initArray(values.size());
auto array = output.getArray();
for (size_t i = 0; i < values.size(); ++i) {
for (auto i : kj::indices(values)) {
array.adoptWithCaveats(i, kj::mv(values[i]));
}
......@@ -476,7 +476,7 @@ public:
output.initObject(fields.size());
auto object = output.getObject();
for (size_t i = 0; i < fields.size(); ++i) {
for (auto i : kj::indices(fields)) {
object.adoptWithCaveats(i, kj::mv(fields[i]));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment