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

UI: Use range-based for loop to enhance readability #11479

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

Conversation

Integral-Tech
Copy link

@Integral-Tech Integral-Tech commented Nov 2, 2024

Description

  • Code refactoring - replace traditional for loops with range-based for loops to enhance readability

Motivation and Context

  • C++11 range-based for loop provides better readability than traditional for loop.

How Has This Been Tested?

Types of changes

  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added the Code Cleanup Non-breaking change which makes code smaller or more readable label Nov 2, 2024
@Integral-Tech Integral-Tech force-pushed the ranged-based-for branch 2 times, most recently from c97027c to 8d5cf53 Compare November 2, 2024 13:14
@Integral-Tech Integral-Tech changed the title refactor: use range-based for loop to enhance readability UI: use range-based for loop to enhance readability Nov 2, 2024
@Integral-Tech Integral-Tech changed the title UI: use range-based for loop to enhance readability UI: Use range-based for loop to enhance readability Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Non-breaking change which makes code smaller or more readable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants