mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
* Rename variable count to resolve shadowing (#3188) * Amalgamate: Rename variable count to resolve shadowing (#3188) Co-authored-by: Maarten Becker <maarten.becker@nuc-eng.com>
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -18818,15 +18818,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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user