From d53a79611644a478a68c6c5e540e85f044d7c74b Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 17 May 2023 15:53:57 -0700 Subject: [PATCH] resolve clang-tidy warning --- tests/test_numpy_array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_numpy_array.cpp b/tests/test_numpy_array.cpp index ef907dad6..8c122a865 100644 --- a/tests/test_numpy_array.cpp +++ b/tests/test_numpy_array.cpp @@ -527,7 +527,7 @@ TEST_SUBMODULE(numpy_array, sm) { sm.def("pass_array_pyobject_ptr_return_sum_str_values", [](const py::array_t &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;