Skip to content

Commit d0e839c

Browse files
refactor: using std::sort replace qSort
[1]: https://doc.qt.io/qt-5/qtalgorithms.html#porting-guidelines
1 parent 09da3bc commit d0e839c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
119
1+
120

src/component/exportutil/exportutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ void ExportUtil::exportXls(QWidget *widget, Contest *contest, const QString &fil
795795
}
796796
}
797797

798-
qSort(sortList);
798+
std::sort(sortList.begin(), sortList.end());
799799
QMap<QString, int> rankList;
800800

801801
for (int i = 0; i < sortList.size(); i++) {

0 commit comments

Comments
 (0)