Fix json renderer always rendering arrays empty
This commit is contained in:
parent
29c75337f2
commit
b404c79ca4
@ -76,7 +76,7 @@ struct Renderer : mapbox::util::static_visitor<>
|
|||||||
void operator()(const Array &array) const
|
void operator()(const Array &array) const
|
||||||
{
|
{
|
||||||
out << "[";
|
out << "[";
|
||||||
for (auto it = array.values.cend(), end = array.values.cend(); it != end;)
|
for (auto it = array.values.cbegin(), end = array.values.cend(); it != end;)
|
||||||
{
|
{
|
||||||
mapbox::util::apply_visitor(Renderer(out), *it);
|
mapbox::util::apply_visitor(Renderer(out), *it);
|
||||||
if (++it != end)
|
if (++it != end)
|
||||||
|
Loading…
Reference in New Issue
Block a user