Mesh: [skip ci] use const-reference when iterating over list

This commit is contained in:
wmayer
2022-05-17 15:52:43 +02:00
parent 5b2d712ffe
commit eaaed0d81c

View File

@@ -244,7 +244,7 @@ private:
// collect all object types that can be exported as mesh
std::vector<App::DocumentObject*> objectList;
for (auto it : list) {
for (const auto& it : list) {
PyObject *item = it.ptr();
if (PyObject_TypeCheck(item, &(App::DocumentObjectPy::Type))) {
auto obj( static_cast<App::DocumentObjectPy *>(item)->getDocumentObjectPtr() );