Cppcheck warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-03 14:54:57 +03:00
parent 0e3a9533af
commit 5b63502b21
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ VPE::VProperty* VPE::QVector3DProperty::clone(bool include_children, VProperty*
if (!include_children) if (!include_children)
{ {
const QList<VProperty*> tmpChildren = container->getChildren(); const QList<VProperty*> &tmpChildren = container->getChildren();
for (auto tmpChild : tmpChildren) for (auto tmpChild : tmpChildren)
{ {
container->removeChild(tmpChild); container->removeChild(tmpChild);

View File

@ -114,7 +114,7 @@ VPE::VProperty *VPE::VPointFProperty::clone(bool include_children, VProperty *co
if (!include_children) if (!include_children)
{ {
const QList<VProperty*> tmpChildren = container->getChildren(); const QList<VProperty*> &tmpChildren = container->getChildren();
for(auto tmpChild : tmpChildren) for(auto tmpChild : tmpChildren)
{ {
container->removeChild(tmpChild); container->removeChild(tmpChild);