diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index d861cbe3a..09c8d7053 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -5764,13 +5764,13 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec /// arrays: the next index to diff std::size_t index = 0; /// objects: the next member of source to look at - const_iterator member{}; + const_iterator member{}; // NOLINT(readability-redundant-member-init) /// objects: the keys common to both, in source's order - std::vector common_keys{}; + std::vector common_keys{}; // NOLINT(readability-redundant-member-init) /// objects: the next entry of common_keys std::size_t next_common = 0; /// objects: the "add" operations for keys only target has - basic_json added_ops{}; + basic_json added_ops{}; // NOLINT(readability-redundant-member-init) }; /// @ref diff for a @a source nested no more than @ref detail::recursion_depth_limit levels deep diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 07a4dd244..ed58807a4 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -30222,13 +30222,13 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec /// arrays: the next index to diff std::size_t index = 0; /// objects: the next member of source to look at - const_iterator member{}; + const_iterator member{}; // NOLINT(readability-redundant-member-init) /// objects: the keys common to both, in source's order - std::vector common_keys{}; + std::vector common_keys{}; // NOLINT(readability-redundant-member-init) /// objects: the next entry of common_keys std::size_t next_common = 0; /// objects: the "add" operations for keys only target has - basic_json added_ops{}; + basic_json added_ops{}; // NOLINT(readability-redundant-member-init) }; /// @ref diff for a @a source nested no more than @ref detail::recursion_depth_limit levels deep