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-29 00:40:11 +02:00
parent 5a9f59a688
commit daad8ea9b5
3 changed files with 5 additions and 5 deletions

View File

@@ -1933,7 +1933,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()