diff options
author | David Robillard <d@drobilla.net> | 2013-01-11 05:40:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-11 05:40:18 +0000 |
commit | d443ddb053141510311e002c59746a2dd9ba8b16 (patch) | |
tree | 6bbe7b6532824117dc9a1ca25d7a09ef3601c2cc /src/LV2Features.cpp | |
parent | 10e9a3a800a35916872abf9e354be4c554338e4e (diff) | |
download | ingen-d443ddb053141510311e002c59746a2dd9ba8b16.tar.gz ingen-d443ddb053141510311e002c59746a2dd9ba8b16.tar.bz2 ingen-d443ddb053141510311e002c59746a2dd9ba8b16.zip |
Use range-based for loops where possible.
Mmm, shiny.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4919 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/LV2Features.cpp')
-rw-r--r-- | src/LV2Features.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp index 612cd9f7..a7069a75 100644 --- a/src/LV2Features.cpp +++ b/src/LV2Features.cpp @@ -57,8 +57,8 @@ SharedPtr<LV2Features::FeatureArray> LV2Features::lv2_features(World* world, Node* node) const { FeatureArray::FeatureVector vec; - for (Features::const_iterator f = _features.begin(); f != _features.end(); ++f) { - SharedPtr<LV2_Feature> fptr = (*f)->feature(world, node); + for (const auto& f : _features) { + SharedPtr<LV2_Feature> fptr = f->feature(world, node); if (fptr) { vec.push_back(fptr); } |