7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Creepage: avoid a copy

This commit is contained in:
Fabien Corona 2024-10-25 00:10:55 +02:00
parent 114ca336ed
commit 8e859ef84b
2 changed files with 2 additions and 2 deletions

View File

@ -2123,7 +2123,7 @@ double CreepageGraph::Solve(
return pathWeight;
}
void CreepageGraph::Addshape( const SHAPE& aShape, std::shared_ptr<GraphNode> aConnectTo,
void CreepageGraph::Addshape( const SHAPE& aShape, std::shared_ptr<GraphNode>& aConnectTo,
BOARD_ITEM* aParent )
{
CREEP_SHAPE* newshape = nullptr;

View File

@ -698,7 +698,7 @@ public:
void RemoveConnection( std::shared_ptr<GraphConnection>, bool aDelete = false );
void Trim( double aWeightLimit );
void Addshape( const SHAPE& aShape, std::shared_ptr<GraphNode> aConnectTo = nullptr,
void Addshape( const SHAPE& aShape, std::shared_ptr<GraphNode>& aConnectTo,
BOARD_ITEM* aParent = nullptr );
double Solve( std::shared_ptr<GraphNode>& aFrom, std::shared_ptr<GraphNode>& aTo,