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

Avoiding copying in range-based loops #1481

Merged
merged 6 commits into from
Oct 9, 2019

Conversation

asapelkin
Copy link
Contributor

@asapelkin asapelkin commented Oct 6, 2019

Small optimization. Used const references in range-based loops to avoid copying every items

Signed-off-by: asapelkin <asapelkin0x01@ya.ru>
Copy link
Contributor

@DominiqueFuchs DominiqueFuchs left a comment

Choose a reason for hiding this comment

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

Good catch @asapelkin - thanks for contributing! Changes are fine by me

@DominiqueFuchs DominiqueFuchs added the enhancement enhancement of a already implemented feature/code label Oct 8, 2019
Copy link
Member

@misch7 misch7 left a comment

Choose a reason for hiding this comment

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

Nice one 👍

@misch7 misch7 merged commit 04a9f03 into nextcloud:master Oct 9, 2019
@misch7
Copy link
Member

misch7 commented Oct 10, 2019

/backport to stable-2.6

@backportbot-nextcloud
Copy link

The backport to stable-2.6 failed. Please do this backport manually.

@misch7
Copy link
Member

misch7 commented Oct 10, 2019

/backport to stable-2.6

@backportbot-nextcloud
Copy link

The backport to stable-2.6 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. to review backport-request enhancement enhancement of a already implemented feature/code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants