diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-03 23:29:58 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-09 13:41:25 +0000 |
commit | 670e54345c6ede1b5edac7a5351736c1c98e0f6c (patch) | |
tree | 6b64bead973269b6156f8304b65492b04751faeb /src/plugins/git/gerrit/gerritmodel.cpp | |
parent | d4b3789db497390d16ebd3ab7b61d0d93dc9c244 (diff) | |
download | qt-creator-670e54345c6ede1b5edac7a5351736c1c98e0f6c.tar.gz |
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit/gerritmodel.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritmodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/git/gerrit/gerritmodel.cpp b/src/plugins/git/gerrit/gerritmodel.cpp index 42da70807c..a3a0c96cdc 100644 --- a/src/plugins/git/gerrit/gerritmodel.cpp +++ b/src/plugins/git/gerrit/gerritmodel.cpp @@ -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) { |