API: Don't accidentally copy board's net info
(cherry picked from commit c9668b81c8)
Co-authored-by: Jon Evans <[email protected]>
This commit is contained in:
@@ -1263,7 +1263,7 @@ HANDLER_RESULT<NetClassForNetsResponse> API_HANDLER_PCB::handleGetNetClassForNet
|
||||
NetClassForNetsResponse response;
|
||||
|
||||
BOARD* board = frame()->GetBoard();
|
||||
NETINFO_LIST nets = board->GetNetInfo();
|
||||
const NETINFO_LIST& nets = board->GetNetInfo();
|
||||
google::protobuf::Any any;
|
||||
|
||||
for( const board::types::Net& net : aCtx.Request.net() )
|
||||
|
||||
Reference in New Issue
Block a user