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

Fix Set range iterator implementation, Use C++ iterators in the Mono module #50917

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

raulsntos
Copy link
Member

Follow-up to #50511, #50809 and #50899.

This PR converts all the for loops in the Mono module to use C++ Range Iterators for List, Map and Set. Using const whenever possible.

I had to fix the Set implementation to be able to convert those, otherwise it wouldn't compile.

There are for loops using SelfList and OrderedHashMap but since those structures don't implement Range Iterators I couldn't translate those.

I'm not well-versed in C++ so I may have made mistakes.

@raulsntos raulsntos requested review from a team as code owners July 27, 2021 01:03
@akien-mga akien-mga added this to the 4.0 milestone Jul 27, 2021
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@akien-mga akien-mga merged commit 7cbdb9b into godotengine:master Jul 27, 2021
@raulsntos raulsntos deleted the more-iterators branch July 27, 2021 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants