13
0

use C++11 auto iterator syntax

This commit is contained in:
Paul Davis 2022-07-28 17:58:38 -06:00
parent 48dbd5801a
commit 96dc3cce88

View File

@ -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;