Removed extra detach calls from QJsonArray::takeAt
Change-Id: I5711ec6b03e3979eca61f62004a7c6f0eaae79e0 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
parent
d2864ffcc0
commit
32efe589a3
@ -377,13 +377,8 @@ QJsonValue QJsonArray::takeAt(int i)
|
||||
if (!a || i < 0 || i >= (int)a->length)
|
||||
return QJsonValue(QJsonValue::Undefined);
|
||||
|
||||
detach();
|
||||
|
||||
QJsonValue v(d, a, a->at(i));
|
||||
v.detach();
|
||||
|
||||
removeAt(i);
|
||||
|
||||
removeAt(i); // detaches
|
||||
return v;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user