From 2fbe93026b5626940834df3eb66092f3dc7e4383 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sun, 11 Aug 2024 13:30:08 -0700 Subject: [PATCH] Fix clang-tidy errors. --- tests/test_cpp_transporter_traveler_bindings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_cpp_transporter_traveler_bindings.h b/tests/test_cpp_transporter_traveler_bindings.h index 39cb36879..462d48d48 100644 --- a/tests/test_cpp_transporter_traveler_bindings.h +++ b/tests/test_cpp_transporter_traveler_bindings.h @@ -16,9 +16,9 @@ inline void wrap_traveler(py::module_ m) { .def(py::init()) .def("__cpp_transporter__", [](py::handle self, - py::str /*cpp_abi_code*/, - py::str /*cpp_typeid_name*/, - py::str pointer_kind) { + const py::str & /*cpp_abi_code*/, + const py::str & /*cpp_typeid_name*/, + const py::str &pointer_kind) { auto pointer_kind_cpp = pointer_kind.cast(); if (pointer_kind_cpp != "raw_pointer_ephemeral") { throw std::runtime_error("Unknown pointer_kind: \"" + pointer_kind_cpp