mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-02 17:18:12 +02:00
Cppcheck warning.
--HG-- branch : develop
This commit is contained in:
parent
5153e997d1
commit
a2cfecd2f1
|
@ -126,15 +126,12 @@ void VPE::VPropertySet::removeProperty(VProperty* prop, bool delete_property)
|
||||||
removePropertyFromSet(prop);
|
removePropertyFromSet(prop);
|
||||||
|
|
||||||
// Remove from parent and optionally delete
|
// Remove from parent and optionally delete
|
||||||
if (prop)
|
|
||||||
{
|
|
||||||
prop->setParent(NULL);
|
prop->setParent(NULL);
|
||||||
|
|
||||||
if (delete_property)
|
if (delete_property)
|
||||||
{
|
{
|
||||||
delete prop;
|
delete prop;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int VPE::VPropertySet::count() const
|
int VPE::VPropertySet::count() const
|
||||||
|
|
Loading…
Reference in a new issue