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:
parent
114ca336ed
commit
8e859ef84b
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user