Skip to content

Remove redundant std::move on const reference - #24

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

Remove redundant std::move on const reference#24
mkoncek merged 1 commit into
fedora-java:mainfrom
mizdebsk:pr/24

Conversation

@mizdebsk

Copy link
Copy Markdown
Member

Eliminate unnecessary use of std::move when passing a value to a function that accepts a const reference. std::move has no effect in this context and may mislead readers about the intent.

Eliminate unnecessary use of std::move when passing a value to a
function that accepts a const reference. std::move has no effect in
this context and may mislead readers about the intent.
@mkoncek

mkoncek commented Jul 22, 2025

Copy link
Copy Markdown
Member

I believe this is a remnant of the older codebase where the string was passed by value.

@mkoncek
mkoncek merged commit 89a8dc8 into fedora-java:main Jul 22, 2025
1 check passed
@mizdebsk
mizdebsk deleted the pr/24 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