diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 710c5a5cf..ae77747b5 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -5429,7 +5429,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec // capacity has changed: update all elements' parents set_parents(); } - set_parent(m_value.array->back()); } /*! diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 3700505c9..2500eb9cb 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -22464,7 +22464,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec // capacity has changed: update all elements' parents set_parents(); } - set_parent(m_value.array->back()); } /*!