Gui: modernize C++: use range-based for loop
This commit is contained in:
@@ -113,8 +113,8 @@ View3DInventorViewerPy::View3DInventorViewerPy(View3DInventorViewer *vi)
|
||||
View3DInventorViewerPy::~View3DInventorViewerPy()
|
||||
{
|
||||
Base::PyGILStateLocker lock;
|
||||
for (std::list<PyObject*>::iterator it = callbacks.begin(); it != callbacks.end(); ++it)
|
||||
Py_DECREF(*it);
|
||||
for (auto it : callbacks)
|
||||
Py_DECREF(it);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user