Loading include/class_collector.h +11 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,17 @@ public: return NULL; } /** * Function BasePtr * returns the address of the first element in the array. Only call this * if there is at least one element in the vector m_List, otherwise a * C++ exception should get thrown. */ EDA_BaseStruct* const* BasePtr() const { return &m_List[0]; } /** * Function SetScanTypes Loading pcbnew/specctra_export.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -242,8 +242,7 @@ static void makePADSTACKs( BOARD* aBoard, TYPE_COLLECTOR& aPads, { if( aPads.GetCount() ) { #warning "uncomment next line asap" //JPC qsort( (void*) aPads.BasePtr(), aPads.GetCount(), sizeof(D_PAD*), Pad_list_Sort_by_Shapes ); qsort( (void*) aPads.BasePtr(), aPads.GetCount(), sizeof(D_PAD*), Pad_list_Sort_by_Shapes ); } D_PAD* old_pad = NULL; Loading Loading
include/class_collector.h +11 −0 Original line number Diff line number Diff line Loading @@ -131,6 +131,17 @@ public: return NULL; } /** * Function BasePtr * returns the address of the first element in the array. Only call this * if there is at least one element in the vector m_List, otherwise a * C++ exception should get thrown. */ EDA_BaseStruct* const* BasePtr() const { return &m_List[0]; } /** * Function SetScanTypes Loading
pcbnew/specctra_export.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -242,8 +242,7 @@ static void makePADSTACKs( BOARD* aBoard, TYPE_COLLECTOR& aPads, { if( aPads.GetCount() ) { #warning "uncomment next line asap" //JPC qsort( (void*) aPads.BasePtr(), aPads.GetCount(), sizeof(D_PAD*), Pad_list_Sort_by_Shapes ); qsort( (void*) aPads.BasePtr(), aPads.GetCount(), sizeof(D_PAD*), Pad_list_Sort_by_Shapes ); } D_PAD* old_pad = NULL; Loading