Rename variable count to resolve shadowing (#3188)
This commit is contained in:
parent
760304635d
commit
1efa3602a2
@ -1278,15 +1278,15 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
iterator set_parents(iterator it, typename iterator::difference_type count)
|
iterator set_parents(iterator it, typename iterator::difference_type count_set_parents)
|
||||||
{
|
{
|
||||||
#if JSON_DIAGNOSTICS
|
#if JSON_DIAGNOSTICS
|
||||||
for (typename iterator::difference_type i = 0; i < count; ++i)
|
for (typename iterator::difference_type i = 0; i < count_set_parents; ++i)
|
||||||
{
|
{
|
||||||
(it + i)->m_parent = this;
|
(it + i)->m_parent = this;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static_cast<void>(count);
|
static_cast<void>(count_set_parents);
|
||||||
#endif
|
#endif
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user