Alembic: don't use m_shapes_type
[blender.git] / source / blender / alembic / intern / abc_exporter.cc
index 592678f5db8d8166c6924e37356cf45fd6b2339c..ec9504a2f3a5a53a01d34b1807295b63dd5c23ca 100644 (file)
@@ -161,9 +161,8 @@ AbcExporter::~AbcExporter()
        }
 
        /* Free shapes vector */
-       m_shapes_type::iterator it_s, e_s;
-       for (it_s = m_shapes.begin(), e_s = m_shapes.end(); it_s != e_s; ++it_s) {
-               delete *it_s;
+       for (int i = 0, e = m_shapes.size(); i != e; ++i) {
+               delete m_shapes[i];
        }
 
        delete m_writer;
@@ -317,9 +316,8 @@ void AbcExporter::operator()(Main *bmain, float &progress, bool &was_canceled)
                setCurrentFrame(bmain, frame - m_settings.frame_start);
 
                if (shape_frames.count(frame) != 0) {
-                       m_shapes_type::iterator xit, xe;
-                       for (xit = m_shapes.begin(), xe = m_shapes.end(); xit != xe; ++xit) {
-                               (*xit)->write();
+                       for (int i = 0, e = m_shapes.size(); i != e; ++i) {
+                               m_shapes[i]->write();
                        }
                }