Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed some Variable copied when it could be moved Coverity warnings #7278

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Feb 4, 2025

No description provided.

@firewave
Copy link
Collaborator Author

firewave commented Feb 4, 2025

Coverity will now also report this findings if the variable which is being copied is const - requiring you not only to get rid of the copy but also make it mutable. This is actually an idea I also had about extending another proposed check (see #8945).

I only applied this in cases where the scope is small. It also reports this for some very big scopes but I chose not to change those. I might re-visit those if they have a measurable effect.

@firewave firewave marked this pull request as ready for review February 4, 2025 13:35
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