Address the clang-tidy findings of element access and iteration

Marks the default initializer of the item's index string (needed by GCC's
-Weffc++) and, in the test, an escaped literal and a comparison of find()
with end(), which is what the test is about.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2026-09-30 21:01:33 +02:00
parent 08dcdaf9b8
commit c2d7177d30
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1946,7 +1946,7 @@ class view_item
private:
iterator m_it;
std::string m_index{};
std::string m_index{}; // NOLINT(readability-redundant-member-init)
};
/// the range returned by basic_json_view::items()