| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -441,15 +441,15 @@ static PyObject *Py_affine_transform(PyObject *self, PyObject *args, PyObject *k | |||
| 441 | 441 | numpy::array_view<double, 2> result(dims); | |
| 442 | 442 | CALL_CPP("affine_transform", (affine_transform_2d(vertices, trans, result))); | |
| 443 | 443 | return result.pyobj(); | |
| 444 | - } catch (py::exception) { | ||
| 444 | + } catch (py::exception &) { | ||
| 445 | 445 | PyErr_Clear(); | |
| 446 | 446 | try { | |
| 447 | 447 | numpy::array_view<double, 1> vertices(vertices_obj); | |
| 448 | 448 | npy_intp dims[] = { (npy_intp)vertices.size() }; | |
| 449 | 449 | numpy::array_view<double, 1> result(dims); | |
| 450 | 450 | CALL_CPP("affine_transform", (affine_transform_1d(vertices, trans, result))); | |
| 451 | 451 | return result.pyobj(); | |
| 452 | - } catch (py::exception) { | ||
| 452 | + } catch (py::exception &) { | ||
| 453 | 453 | return NULL; | |
| 454 | 454 | } | |
| 455 | 455 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -167,7 +167,7 @@ int convert_rect(PyObject *rectobj, void *rectp) | |||
| 167 | 167 | rect->x2 = rect_arr(1, 0); | |
| 168 | 168 | rect->y2 = rect_arr(1, 1); | |
| 169 | 169 | } | |
| 170 | - catch (py::exception) | ||
| 170 | + catch (py::exception &) | ||
| 171 | 171 | { | |
| 172 | 172 | PyErr_Clear(); | |
| 173 | 173 | ||
@@ -185,7 +185,7 @@ int convert_rect(PyObject *rectobj, void *rectp) | |||
| 185 | 185 | rect->x2 = rect_arr(2); | |
| 186 | 186 | rect->y2 = rect_arr(3); | |
| 187 | 187 | } | |
| 188 | - catch (py::exception) | ||
| 188 | + catch (py::exception &) | ||
| 189 | 189 | { | |
| 190 | 190 | return 0; | |
| 191 | 191 | } | |
@@ -347,7 +347,7 @@ int convert_trans_affine(PyObject *obj, void *transp) | |||
| 347 | 347 | return 1; | |
| 348 | 348 | } | |
| 349 | 349 | } | |
| 350 | - catch (py::exception) | ||
| 350 | + catch (py::exception &) | ||
| 351 | 351 | { | |
| 352 | 352 | return 0; | |
| 353 | 353 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ class exception : public std::exception | |||
| 30 | 30 | } \ | |
| 31 | 31 | return (errorcode); \ | |
| 32 | 32 | } \ | |
| 33 | - catch (const std::bad_alloc) \ | ||
| 33 | + catch (const std::bad_alloc &) \ | ||
| 34 | 34 | { \ | |
| 35 | 35 | PyErr_Format(PyExc_MemoryError, "In %s: Out of memory", (name)); \ | |
| 36 | 36 | { \ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments