mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
resolve clang-tidy warning
This commit is contained in:
parent
5168c135ae
commit
d53a796116
@ -527,7 +527,7 @@ TEST_SUBMODULE(numpy_array, sm) {
|
||||
sm.def("pass_array_pyobject_ptr_return_sum_str_values",
|
||||
[](const py::array_t<PyObject *> &objs) {
|
||||
std::string sum_str_values;
|
||||
for (auto &obj : objs) {
|
||||
for (const auto &obj : objs) {
|
||||
sum_str_values += py::str(obj.attr("value"));
|
||||
}
|
||||
return sum_str_values;
|
||||
|
Loading…
Reference in New Issue
Block a user