Apply clang-tidy suggestion.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-06-22 14:27:42 -07:00
parent 262998b317
commit 3cc2c9cd45

View File

@ -49,7 +49,7 @@ TEST_SUBMODULE(type_caster_odr_guard_1, m) {
m.def("type_caster_odr_guard_registry_values", []() {
#ifdef PYBIND11_TYPE_CASTER_ODR_GUARD_ON
py::list values;
for (auto reg_iter : py::detail::type_caster_odr_guard_registry()) {
for (const auto &reg_iter : py::detail::type_caster_odr_guard_registry()) {
values.append(py::str(reg_iter.second));
}
return values;