Skip to content

Commit ef433dc

Browse files
committed
Applying clang-tidy suggested fixes.
1 parent 2cbf77a commit ef433dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pickling.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ void wrap(py::module m) {
3737
.def(py::init<>())
3838
.def_readwrite("num", &SimpleBase::num)
3939
.def(py::pickle(
40-
[](py::object self) {
40+
[](const py::object& self) {
4141
py::dict d;
4242
if (py::hasattr(self, "__dict__"))
4343
d = self.attr("__dict__");
4444
return py::make_tuple(self.attr("num"), d);
4545
},
46-
[](py::tuple t) {
46+
[](const py::tuple& t) {
4747
if (t.size() != 2)
4848
throw std::runtime_error("Invalid state!");
4949
auto cpp_state = std::unique_ptr<SimpleBase>(new SimpleBaseTrampoline);

0 commit comments

Comments
 (0)