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 a7218a2de..ff2791db2 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -22473,7 +22473,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()); } /*!