diff --git a/src/libs/vpropertyexplorer/plugins/Vector3d/vvector3dproperty.cpp b/src/libs/vpropertyexplorer/plugins/Vector3d/vvector3dproperty.cpp index df2960a40..1eceddbcc 100644 --- a/src/libs/vpropertyexplorer/plugins/Vector3d/vvector3dproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/Vector3d/vvector3dproperty.cpp @@ -115,7 +115,7 @@ VPE::VProperty* VPE::QVector3DProperty::clone(bool include_children, VProperty* if (!include_children) { - const QList tmpChildren = container->getChildren(); + const QList &tmpChildren = container->getChildren(); for (auto tmpChild : tmpChildren) { container->removeChild(tmpChild); diff --git a/src/libs/vpropertyexplorer/plugins/vpointfproperty.cpp b/src/libs/vpropertyexplorer/plugins/vpointfproperty.cpp index 53836d1f1..41cf1ef0f 100644 --- a/src/libs/vpropertyexplorer/plugins/vpointfproperty.cpp +++ b/src/libs/vpropertyexplorer/plugins/vpointfproperty.cpp @@ -114,7 +114,7 @@ VPE::VProperty *VPE::VPointFProperty::clone(bool include_children, VProperty *co if (!include_children) { - const QList tmpChildren = container->getChildren(); + const QList &tmpChildren = container->getChildren(); for(auto tmpChild : tmpChildren) { container->removeChild(tmpChild);