Remove usage of deprecated function qSort
authorPaul Olav Tvete <paul.tvete@digia.com>
Tue, 24 Sep 2013 08:30:23 +0000 (10:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 25 Sep 2013 09:40:16 +0000 (11:40 +0200)
Change-Id: Ic99f7627430546a44a5290f913a35b2ba6d664b5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/androiddeployqt/main.cpp

index 454ad31..c67dfec 100644 (file)
@@ -54,6 +54,7 @@
 #include <QStandardPaths>
 #include <QUuid>
 
+#include <algorithm>
 static const bool mustReadOutputAnyway = true; // pclose seems to return the wrong error code unless we read the output
 
 void deleteRecursively(const QString &dirName)
@@ -429,7 +430,7 @@ QString detectLatestAndroidPlatform(const QString &sdkPath)
         return QString();
     }
 
-    qSort(fileInfos.begin(), fileInfos.end(), quasiLexicographicalReverseLessThan);
+    std::sort(fileInfos.begin(), fileInfos.end(), quasiLexicographicalReverseLessThan);
 
     QFileInfo latestPlatform = fileInfos.first();
     return latestPlatform.baseName();