Skip to content

Avoid unnecessary temp object in emplace_back - #23

Merged
mkoncek merged 1 commit into
fedora-java:mainfrom
mizdebsk:pr/23
Jul 22, 2025
Merged

Avoid unnecessary temp object in emplace_back#23
mkoncek merged 1 commit into
fedora-java:mainfrom
mizdebsk:pr/23

Conversation

@mizdebsk

Copy link
Copy Markdown
Member

Refactor emplace_back usage to pass constructor arguments directly, eliminating the creation of a temporary Path_origin_entry object. This allows the object to be constructed in-place within the vector.

Refactor emplace_back usage to pass constructor arguments directly,
eliminating the creation of a temporary Path_origin_entry object.
This allows the object to be constructed in-place within the vector.
@mkoncek
mkoncek merged commit 7cdffa9 into fedora-java:main Jul 22, 2025
1 check passed
@mizdebsk
mizdebsk deleted the pr/23 branch July 22, 2025 16:33
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