Skip to content

fix: use const reference in foreach loop#810

Merged
annejan merged 1 commit intomainfrom
fix/usersdialog-foreach-ref
Mar 28, 2026
Merged

fix: use const reference in foreach loop#810
annejan merged 1 commit intomainfrom
fix/usersdialog-foreach-ref

Conversation

@nogeenhenk
Copy link
Copy Markdown
Contributor

Summary

Use const reference in foreach loop to avoid unnecessary copies of QString objects.

This addresses the AI finding about missing reference qualifier on loop variable.

Avoid unnecessary copies of QString objects by using const reference.
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 18.415%. remained the same
when pulling f44866e on fix/usersdialog-foreach-ref
into ca9b7dc on main.

@annejan annejan merged commit 2bbe512 into main Mar 28, 2026
16 of 17 checks passed
@annejan annejan deleted the fix/usersdialog-foreach-ref branch March 28, 2026 03:42
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.

3 participants