From 8809a25aa6399614a5bee006ece06bc46ace7c66 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Thu, 21 Apr 2022 11:26:22 -0400 Subject: [PATCH] Fix other instances --- src/python/corrade/containers.cpp | 4 ++-- src/python/magnum/math.matrix.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/corrade/containers.cpp b/src/python/corrade/containers.cpp index 51f9282..fd485a2 100644 --- a/src/python/corrade/containers.cpp +++ b/src/python/corrade/containers.cpp @@ -100,7 +100,7 @@ template void arrayView(py::class_, Containers .def(py::init(), "Default constructor") /* Buffer protocol */ - .def(py::init([](py::buffer other) { + .def(py::init([](const py::buffer& other) { /* GCC 4.8 otherwise loudly complains about missing initializers */ Py_buffer buffer{nullptr, nullptr, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr, nullptr}; if(PyObject_GetBuffer(other.ptr(), &buffer, (std::is_const::value ? 0 : PyBUF_WRITABLE)) != 0) @@ -316,7 +316,7 @@ template void stridedArrayView(py::class_::value ? 0 : PyBUF_WRITABLE)) != 0) diff --git a/src/python/magnum/math.matrix.h b/src/python/magnum/math.matrix.h index 0f70098..6a26103 100644 --- a/src/python/magnum/math.matrix.h +++ b/src/python/magnum/math.matrix.h @@ -105,7 +105,7 @@ template void everyRectangularMatrixBuffer(py::class_