Skip to content

Avoid an unneeded copy in TreeView::changeItemHierarchy - #392

Closed
jjuhl wants to merge 1 commit into
texus:1.xfrom
jjuhl:1.x
Closed

jjuhl wants to merge 1 commit into
texus:1.xfrom
jjuhl:1.x

Conversation

@jjuhl

@jjuhl jjuhl commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

We don't need to copy-construct 'nodeSharedPtr', a const reference is fine for what we do with it, so just hold onto a const& instead of creating a copy.

We don't need to copy-construct 'nodeSharedPtr', a const reference is fine
for what we do with it, so just hold onto a const& instead of creating a copy.
@jjuhl

jjuhl commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Whoops. This is wrong. It worked on my machine, but fails CI, so obviously I've missed something.

@jjuhl jjuhl closed this Aug 9, 2026
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.

1 participant