@@ -352,7 +352,7 @@ PyObject *_point_in_path(PyObject *self, PyObject *_args)
352352 if (!PyArg_ParseTuple (_args, " dddOO" , &x, &y, &r, &_path, &_trans)) {
353353 return NULL ;
354354 }
355- PathIterator path (Py::Object ( _path, false ) );
355+ PathIterator path (_path);
356356 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
357357
358358 if (::point_in_path (x, y, r, path, trans)) {
@@ -373,7 +373,7 @@ PyObject *_points_in_path(PyObject *self, PyObject *_args)
373373 return NULL ;
374374 }
375375
376- PathIterator path (Py::Object ( _path, false ) );
376+ PathIterator path (_path);
377377 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
378378
379379 PyArrayObject* points_array;
@@ -437,7 +437,7 @@ PyObject *_point_on_path(PyObject *self, PyObject *_args)
437437 if (!PyArg_ParseTuple (_args, " dddOO" , &x, &y, &r, &_path, &_trans)) {
438438 return NULL ;
439439 }
440- PathIterator path (Py::Object ( _path, false ) );
440+ PathIterator path (_path);
441441 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
442442
443443 if (::point_on_path (x, y, r, path, trans))
@@ -498,7 +498,7 @@ PyObject *_get_path_extents(PyObject *self, PyObject *_args)
498498 if (!PyArg_ParseTuple (_args, " OO" , &_path, &_trans)) {
499499 return NULL ;
500500 }
501- PathIterator path (Py::Object ( _path, false ) );
501+ PathIterator path (_path);
502502 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
503503 /*
504504 const Py::Tuple args(_args);
@@ -547,7 +547,7 @@ PyObject *_update_path_extents(PyObject *self, PyObject *_args)
547547 &_path, &_trans, &_bbox, &_minpos, &_ignore)) {
548548 return NULL ;
549549 }
550- PathIterator path (Py::Object ( _path, false ) );
550+ PathIterator path (_path);
551551 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
552552
553553 double x0, y0, x1, y1;
@@ -803,7 +803,7 @@ PyObject *_get_path_collection_extents(PyObject *self, PyObject *_args)
803803
804804 if (transforms.size () <= 1 && Npaths == 1 )
805805 {
806- PathIterator path (Py::Object ( paths_arr[0 ], false ) );
806+ PathIterator path (paths_arr[0 ]);
807807 // PathIterator path(paths[0]);
808808 if (Ntransforms)
809809 {
@@ -834,7 +834,7 @@ PyObject *_get_path_collection_extents(PyObject *self, PyObject *_args)
834834 } else {
835835 for (i = 0 ; i < N; ++i)
836836 {
837- PathIterator path (Py::Object ( paths_arr[i % Npaths], false ) );
837+ PathIterator path (paths_arr[i % Npaths]);
838838 // PathIterator path(paths[i % Npaths]);
839839 if (Ntransforms)
840840 {
@@ -976,7 +976,7 @@ PyObject *_point_in_path_collection(PyObject *self, PyObject *_args)
976976
977977 for (i = 0 ; i < N; ++i)
978978 {
979- PathIterator path (Py::Object ( paths_arr[i % Npaths], false ) );
979+ PathIterator path (paths_arr[i % Npaths]);
980980 // PathIterator path(paths[i % Npaths]);
981981
982982 if (Ntransforms)
@@ -1071,10 +1071,10 @@ PyObject *_path_in_path(PyObject *self, PyObject *_args)
10711071 if (!PyArg_ParseTuple (_args, " OOOO" , &_a, &_atrans, &_b, &_btrans)) {
10721072 return NULL ;
10731073 }
1074- PathIterator a (Py::Object (_a, false ) );
1074+ PathIterator a (_a );
10751075 agg::trans_affine atrans = py_to_agg_transformation_matrix (_atrans, false );
10761076
1077- PathIterator b (Py::Object (_b, false ) );
1077+ PathIterator b (_b );
10781078 agg::trans_affine btrans = py_to_agg_transformation_matrix (_btrans, false );
10791079
10801080 /*
@@ -1313,7 +1313,7 @@ PyObject *_clip_path_to_rect(PyObject *self, PyObject *_args)
13131313 if (!PyArg_ParseTuple (_args, " OOO" , &_path, &_bbox, &_inside)) {
13141314 return NULL ;
13151315 }
1316- PathIterator path (Py::Object ( _path, false ) );
1316+ PathIterator path (_path);
13171317 bool inside = PyObject_IsTrue (_inside) != 0 ;
13181318
13191319 double x0, y0, x1, y1;
@@ -1712,8 +1712,8 @@ PyObject *_path_intersects_path(PyObject *self, PyObject *_args)
17121712 return NULL ;
17131713 }
17141714
1715- PathIterator p1 (Py::Object ( _p1, false ) );
1716- PathIterator p2 (Py::Object ( _p2, false ) );
1715+ PathIterator p1 (_p1);
1716+ PathIterator p2 (_p2);
17171717 bool filled = PyObject_IsTrue (_filled) != 0 ;
17181718 /*
17191719 const Py::Tuple args(_args);
@@ -1787,7 +1787,7 @@ PyObject *_convert_path_to_polygons(PyObject *self, PyObject *_args)
17871787 if (!PyArg_ParseTuple (_args, " OOdd" , &_path, &_trans, &width, &height)) {
17881788 return NULL ;
17891789 }
1790- PathIterator path (Py::Object ( _path, false ) );
1790+ PathIterator path (_path);
17911791 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
17921792
17931793 /*
@@ -1923,7 +1923,7 @@ PyObject *_cleanup_path(PyObject *self, PyObject *_args)
19231923 return NULL ;
19241924 }
19251925
1926- PathIterator path (Py::Object ( _path, false ) );
1926+ PathIterator path (_path);
19271927 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
19281928 bool remove_nans = PyObject_IsTrue (_nans) != 0 ;
19291929 bool do_clip = _clip != Py_None;
@@ -2108,7 +2108,7 @@ PyObject *_convert_to_svg(PyObject *self, PyObject *_args)
21082108 return NULL ;
21092109 }
21102110
2111- PathIterator path (Py::Object ( _path, false ) );
2111+ PathIterator path (_path);
21122112 agg::trans_affine trans = py_to_agg_transformation_matrix (_trans, false );
21132113 bool do_clip = PyObject_IsTrue (_clip) != 0 ;
21142114
0 commit comments