- fbx: accidentially passed a wrong predicate for sorting Connections to std::sort.
parent
4db113395c
commit
d6e929b670
|
@ -642,7 +642,7 @@ std::vector<const Connection*> Document::GetConnectionsBySourceSequenced(uint64_
|
|||
temp.push_back((*it).second);
|
||||
}
|
||||
|
||||
std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::CompareTo));
|
||||
std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::Compare));
|
||||
|
||||
return temp; // NRVO should handle this
|
||||
}
|
||||
|
@ -661,7 +661,7 @@ std::vector<const Connection*> Document::GetConnectionsByDestinationSequenced(ui
|
|||
temp.push_back((*it).second);
|
||||
}
|
||||
|
||||
std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::CompareTo));
|
||||
std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::Compare));
|
||||
|
||||
return temp; // NRVO should handle this
|
||||
}
|
||||
|
|
|
@ -439,6 +439,10 @@ public:
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool Compare(const Connection* c) const {
|
||||
return InsertionOrder() < c->InsertionOrder();
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
uint64_t insertionOrder;
|
||||
|
|
Loading…
Reference in New Issue