* When cloning a block, the new ports were connected to the old links
* This code section imitats Controller::deepClone()
Change-Id: I8b2f6e189d48bd052616c709c98d1adcc692eef9
}
else
{
- cloned.push_back(getObject(id));
+ cloned.push_back(nullptr);
}
}
}
// update the ScicosID related properties after cloning all the objects
if (p == CHILDREN)
{
- for (auto const& it : mapped)
+ for (auto const & it : mapped)
{
model::BaseObject* initial = it.first;
model::BaseObject* cloned = it.second;