From 5b63502b214aa651e86659ba48d2d2ac6157f6b5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 3 Apr 2018 14:54:57 +0300 Subject: [PATCH] Cppcheck warnings. --HG-- branch : develop --- .../vpropertyexplorer/plugins/Vector3d/vvector3dproperty.cpp | 2 +- src/libs/vpropertyexplorer/plugins/vpointfproperty.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);