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

range loop refactoring #2937

Merged
merged 3 commits into from
Sep 11, 2023
Merged

range loop refactoring #2937

merged 3 commits into from
Sep 11, 2023

Conversation

Joilnen
Copy link
Contributor

@Joilnen Joilnen commented Sep 6, 2023

No description provided.

int vsOutLocation = 0;

for ( ; itParam != itParamEnd; ++itParam)
for (const auto& p : outParams)
Copy link
Member

@paroj paroj Sep 9, 2023

Choose a reason for hiding this comment

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

Suggested change
for (const auto& p : outParams)
for (const auto* p : outParams)

please use pointer type as in the other PR.

auto& resolves to T*& here otherwise

Copy link
Member

Choose a reason for hiding this comment

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

ah, my bad. This one was correct as this is a shared_ptr

@Joilnen Joilnen requested a review from paroj September 11, 2023 15:53
@paroj paroj merged commit 64bc666 into OGRECave:master Sep 11, 2023
4 checks passed
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.

2 participants