Skip to content

Commit

Permalink
Use unique_ptr for pieces.
Browse files Browse the repository at this point in the history
  • Loading branch information
leozide committed Jun 20, 2024
1 parent b070b0a commit 39cb7e1
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 179 deletions.
2 changes: 1 addition & 1 deletion common/lc_instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void lcInstructions::AddDefaultPages(lcModel* Model, std::vector<const lcModel*>
{
std::set<lcModel*> StepSubModels;

for (lcPiece* Piece : Model->GetPieces())
for (const std::unique_ptr<lcPiece>& Piece : Model->GetPieces())
{
if (!Piece->IsHidden() && Piece->GetStepShow() == Step && Piece->mPieceInfo->IsModel())
{
Expand Down
Loading

0 comments on commit 39cb7e1

Please sign in to comment.