Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

More range-based for loops. #758

Merged
merged 1 commit into from Aug 28, 2015
Merged

More range-based for loops. #758

merged 1 commit into from Aug 28, 2015

Conversation

Morwenn
Copy link
Contributor

@Morwenn Morwenn commented Aug 28, 2015

It seems that MapApi.cpp missed the big range-based for loops update a few months ago, so here we go. The only observable difference is that no EntityPtr is not copied anymore map_api_get_entities_in_rectangle, so it probably saves some reference counting in the underlying std::shared_ptr. This time without auto&& syntax.

@christopho
Copy link
Collaborator

I don't know why I missed this file when porting the code to C++11. Thanks!

christopho added a commit that referenced this pull request Aug 28, 2015
@christopho christopho merged commit b2c4e51 into solarus-games:master Aug 28, 2015
@Morwenn Morwenn deleted the foreach_loops branch August 30, 2015 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants