summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/rcc/tst_rcc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools/rcc/tst_rcc.cpp')
-rw-r--r--tests/auto/tools/rcc/tst_rcc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/tools/rcc/tst_rcc.cpp b/tests/auto/tools/rcc/tst_rcc.cpp
index 4089d53f3d..9a494428e7 100644
--- a/tests/auto/tools/rcc/tst_rcc.cpp
+++ b/tests/auto/tools/rcc/tst_rcc.cpp
@@ -54,6 +54,8 @@
#include <QtCore/QLocale>
#include <QtCore/QtGlobal>
+#include <algorithm>
+
typedef QMap<QString, QString> QStringMap;
Q_DECLARE_METATYPE(QStringMap)
@@ -325,8 +327,8 @@ void tst_rcc::binary()
}
// check that we have all (and only) the expected files
- qSort(filesFound);
- qSort(expectedFileNames);
+ std::sort(filesFound.begin(), filesFound.end());
+ std::sort(expectedFileNames.begin(), expectedFileNames.end());
QCOMPARE(filesFound, expectedFileNames);
// now actually check the file contents