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

[sdk] Support range-based for-loop in Collection class in Host SDK #20

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

Conversation

tkarabela
Copy link
Contributor

I've been playing around with the Host C++ SDK regarding the RFC to run plugins in a separate process and noticed that range-based for wasn't supported on OfxPropertySetStruct, OfxAttributeSetStruct, etc. so I added it.

With this change, it's possible to write more concise code, eg.:

  for (auto& effectInput : effectDescriptor->inputs) { ... }

Instead of the more verbose:

  for (int i = 0; i < effectDescriptor->inputs.count(); i++) {
    auto& effectInput = effectDescriptor->inputs[i];
    ...
  }
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.

1 participant