mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a metadata corrupting bug. You can't use std::sort on a boost ptr_vector.
This commit is contained in:
@@ -943,7 +943,7 @@ STArray* STArray::construct(SerializerIterator& sit, SField::ref field)
|
||||
|
||||
void STArray::sort(bool (*compare)(const STObject&, const STObject&))
|
||||
{
|
||||
std::sort(value.begin(), value.end(), compare);
|
||||
value.sort(compare);
|
||||
}
|
||||
|
||||
std::auto_ptr<STObject> STObject::parseJson(const Json::Value& object, SField::ref inName, int depth)
|
||||
|
||||
Reference in New Issue
Block a user