Skip to content

refactor: Remove shared_ptr where possible.#775

Merged
eyal0 merged 19 commits intopcb2gcode:masterfrom
eyal0:no_shared
Feb 28, 2026
Merged

refactor: Remove shared_ptr where possible.#775
eyal0 merged 19 commits intopcb2gcode:masterfrom
eyal0:no_shared

Conversation

@eyal0
Copy link
Copy Markdown
Contributor

@eyal0 eyal0 commented Feb 27, 2026

The code is a little too hasty to use std::shared_ptr even where it isn't necessary. This is sloppy. We remove it everywhere except for the cases where it is used for storing a pointer to a polymorphic type in a class because that is the easiest solution for making a class that is copyable.

@eyal0 eyal0 self-assigned this Feb 27, 2026
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Feb 27, 2026

Coverage Status

coverage: 70.519% (-0.08%) from 70.594%
when pulling f48c1cc on eyal0:no_shared
into e45a6df on pcb2gcode:master.

eyal0 added 19 commits February 27, 2026 20:16
This will let us use `std::move` on it in the future.  To do this, we
can no longer repurpose the `cutter` as we were doing previously.
@eyal0 eyal0 changed the title No shared refactor: Remove shared_ptr where possible. Feb 28, 2026
@eyal0 eyal0 merged commit 78f62e9 into pcb2gcode:master Feb 28, 2026
11 of 13 checks passed
@eyal0 eyal0 deleted the no_shared branch February 28, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants