Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ ElementPtr Element::Clone(sdf::Errors &_errors) const
for (eiter = this->dataPtr->elementDescriptions.begin();
eiter != this->dataPtr->elementDescriptions.end(); ++eiter)
{
clone->dataPtr->elementDescriptions.push_back((*eiter)->Clone(_errors));
clone->dataPtr->elementDescriptions.push_back(*eiter);
}

for (eiter = this->dataPtr->elements.begin();
Expand Down Expand Up @@ -348,7 +348,7 @@ void Element::Copy(const ElementPtr _elem, sdf::Errors &_errors)
_elem->dataPtr->elementDescriptions.begin();
iter != _elem->dataPtr->elementDescriptions.end(); ++iter)
{
this->dataPtr->elementDescriptions.push_back((*iter)->Clone(_errors));
this->dataPtr->elementDescriptions.push_back(*iter);
}

this->dataPtr->elements.clear();
Expand Down Expand Up @@ -1200,7 +1200,7 @@ ElementPtr Element::AddElement(const std::string &_name, sdf::Errors &_errors)
for (unsigned int i = 0; i < parent->GetElementDescriptionCount(); ++i)
{
this->dataPtr->elementDescriptions.push_back(
parent->GetElementDescription(i)->Clone(_errors));
parent->GetElementDescription(i));
}
}

Expand Down
Loading