Skip to content

Commit d53a796

Browse files
committed
resolve clang-tidy warning
1 parent 5168c13 commit d53a796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_numpy_array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ TEST_SUBMODULE(numpy_array, sm) {
527527
sm.def("pass_array_pyobject_ptr_return_sum_str_values",
528528
[](const py::array_t<PyObject *> &objs) {
529529
std::string sum_str_values;
530-
for (auto &obj : objs) {
530+
for (const auto &obj : objs) {
531531
sum_str_values += py::str(obj.attr("value"));
532532
}
533533
return sum_str_values;

0 commit comments

Comments
 (0)