SWIG out connected item vector for use

Fixes https://gitlab.com/kicad/code/kicad/issues/8566
This commit is contained in:
Seth Hillbrand 2021-11-19 13:38:40 -08:00
parent 802cfc1a7d
commit 7529eb1812
1 changed files with 4 additions and 4 deletions

View File

@ -29,9 +29,9 @@
#include <board_connected_item.h>
%}
%typemap(out) std::list<BOARD_CONNECTED_ITEM*> {
std::list<BOARD_CONNECTED_ITEM*> list = $1;
std::list<BOARD_CONNECTED_ITEM*>::const_iterator iter;
%typemap(out) std::vector<BOARD_CONNECTED_ITEM*> {
std::vector<BOARD_CONNECTED_ITEM*> list = $1;
std::vector<BOARD_CONNECTED_ITEM*>::const_iterator iter;
PyObject * retval = $result = PyList_New(0);
@ -50,7 +50,7 @@
case PCB_ARC_T:
case PCB_VIA_T:
obj = SWIG_NewPointerObj( SWIG_as_voidptr(aItem),
SWIGTYPE_p_TRACK,
SWIGTYPE_p_PCB_TRACK,
0 | 0 );
break;