Performance. (Coverity)

This commit is contained in:
Jeff Young 2023-05-07 14:54:33 +01:00
parent 4a62cc6edd
commit 5bf450a89f
1 changed files with 3 additions and 3 deletions

View File

@ -56,15 +56,15 @@ public:
parent( aParent ),
shape( aShape ),
shapeStorage( nullptr ),
parentShape( aParentShape )
parentShape( std::move( aParentShape ) )
{};
ITEM_WITH_SHAPE( BOARD_ITEM *aParent, std::shared_ptr<SHAPE> aShape,
ITEM_WITH_SHAPE( BOARD_ITEM *aParent, const std::shared_ptr<SHAPE>& aShape,
std::shared_ptr<SHAPE> aParentShape = nullptr ) :
parent( aParent ),
shape( aShape.get() ),
shapeStorage( aShape ),
parentShape( aParentShape )
parentShape( std::move( aParentShape ) )
{};
BOARD_ITEM* parent;