use C++11 auto iterator syntax
This commit is contained in:
parent
48dbd5801a
commit
96dc3cce88
@ -87,8 +87,8 @@ AudioPlaylist::AudioPlaylist (boost::shared_ptr<const AudioPlaylist> other, time
|
|||||||
|
|
||||||
RegionList::iterator ours = regions.begin ();
|
RegionList::iterator ours = regions.begin ();
|
||||||
|
|
||||||
for (RegionList::const_iterator i = other->regions.begin(); i != other->regions.end(); ++i) {
|
for (auto const & r : other->regions) {
|
||||||
boost::shared_ptr<AudioRegion> region = boost::dynamic_pointer_cast<AudioRegion> (*i);
|
boost::shared_ptr<AudioRegion> region = boost::dynamic_pointer_cast<AudioRegion> (r);
|
||||||
assert (region);
|
assert (region);
|
||||||
|
|
||||||
samplecnt_t fade_in = 64;
|
samplecnt_t fade_in = 64;
|
||||||
|
Loading…
Reference in New Issue
Block a user