summaryrefslogtreecommitdiff
path: root/src/plugins/git
diff options
context:
space:
mode:
authorNikita Baryshnikov <nib952051@gmail.com>2014-06-16 18:25:52 +0400
committerhjk <hjk121@nokiamail.com>2014-06-19 14:00:32 +0200
commit12103e0f676f762658310b885f8d427cdd755a18 (patch)
tree1f6ea995e86e0895fee3776e84fe75ffd717c881 /src/plugins/git
parenteefd0f43320bccfeecf162bf398b50ccad7e90dc (diff)
downloadqt-creator-12103e0f676f762658310b885f8d427cdd755a18.tar.gz
Reinvent deprecated qSort as Utils::sort
Change-Id: I4f6011cc2b6127037249aabc2426a88ad7108ebf Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/git')
-rw-r--r--src/plugins/git/commitdata.cpp3
-rw-r--r--src/plugins/git/stashdialog.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/git/commitdata.cpp b/src/plugins/git/commitdata.cpp
index 0ac0c5d1de..73878e5f83 100644
--- a/src/plugins/git/commitdata.cpp
+++ b/src/plugins/git/commitdata.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "commitdata.h"
+#include <utils/algorithm.h>
#include <utils/qtcassert.h>
#include <QCoreApplication>
@@ -166,7 +167,7 @@ bool CommitData::checkLine(const QString &stateInfo, const QString &file)
files.append(qMakePair(yState, newFile));
}
}
- qSort(files);
+ Utils::sort(files);
return true;
}
diff --git a/src/plugins/git/stashdialog.cpp b/src/plugins/git/stashdialog.cpp
index 89aed1dbe2..b3c89b64e0 100644
--- a/src/plugins/git/stashdialog.cpp
+++ b/src/plugins/git/stashdialog.cpp
@@ -33,6 +33,7 @@
#include "gitutils.h"
#include "ui_stashdialog.h"
+#include <utils/algorithm.h>
#include <utils/qtcassert.h>
#include <QDebug>
@@ -367,7 +368,7 @@ QList<int> StashDialog::selectedRows() const
if (index.isValid())
rc.push_back(index.row());
}
- qSort(rc);
+ Utils::sort(rc);
return rc;
}