]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.cpp
Use C++11 features with containers
[libs/gl.git] / source / core / batch.cpp
index 1469ab110ee61d1ec69c37616f43ed310d3315e5..d99bb95e24e53a2878143c949f5113fdfca980a5 100644 (file)
@@ -96,8 +96,8 @@ Batch &Batch::append(const vector<unsigned> &ind)
                return *this;
 
        data.reserve(data.size()+ind.size()*get_index_size());
-       for(vector<unsigned>::const_iterator i=ind.begin(); i!=ind.end(); ++i)
-               append_index(*i);
+       for(unsigned i: ind)
+               append_index(i);
 
        update_offset();
        dirty = true;