Skip to content

Commit

Permalink
add note about order
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 4, 2020
1 parent 012156e commit 359ca9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tpe/lib/src/Model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ Entity &Model::GetCanonicalLink()
if (linkEnt.GetId() != kNullEntityId)
return linkEnt;

// todo(anyone) the code below does not guarantee that the link returned is
// the first link defined in SDF since GetChildren returns a std::map, and
// likewise the use of std::set, do not preserve order.
std::set<Model *> models;
for (auto &it : this->GetChildren())
{
Expand Down

0 comments on commit 359ca9a

Please sign in to comment.