forked from qt-creator/qt-creator
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d4b3789db4
commit
670e54345c
@@ -640,9 +640,9 @@ static bool parseOutput(const QSharedPointer<GerritParameters> ¶meters,
|
||||
approval.description = ao.value(approvalsDescriptionKey).toString();
|
||||
change->currentPatchSet.approvals.push_back(approval);
|
||||
}
|
||||
qStableSort(change->currentPatchSet.approvals.begin(),
|
||||
change->currentPatchSet.approvals.end(),
|
||||
gerritApprovalLessThan);
|
||||
std::stable_sort(change->currentPatchSet.approvals.begin(),
|
||||
change->currentPatchSet.approvals.end(),
|
||||
gerritApprovalLessThan);
|
||||
// Remaining
|
||||
change->number = object.value(numberKey).toString().toInt();
|
||||
change->url = object.value(urlKey).toString();
|
||||
@@ -779,7 +779,7 @@ void GerritModel::queryFinished(const QByteArray &output)
|
||||
}
|
||||
}
|
||||
// Sort by depth (root nodes first) and by date.
|
||||
qStableSort(changes.begin(), changes.end(), gerritChangeLessThan);
|
||||
std::stable_sort(changes.begin(), changes.end(), gerritChangeLessThan);
|
||||
numberIndexHash.clear();
|
||||
|
||||
foreach (const GerritChangePtr &c, changes) {
|
||||
|
||||
Reference in New Issue
Block a user