Deprecated qSort => std::sort

This change gets rid of some GCC's -Wdeprecated-declarations warnings.
This commit is contained in:
Igor Kushnir
2021-02-05 17:38:08 +02:00
committed by Felix Kauselmann
parent 70287994dd
commit 3c9ed6ef8f
6 changed files with 18 additions and 14 deletions

View File

@ -11,6 +11,8 @@
#include <QtGui>
#include <algorithm>
#ifdef Q_OS_MAC
#include <QFileIconProvider>
QIcon finishedFolderIcon;
@ -413,8 +415,7 @@ QStringList FolderModel::getSubfoldersNames(const QModelIndex &mi)
}
QSqlDatabase::removeDatabase(connectionName);
//TODO sort result))
qSort(result.begin(), result.end(), naturalSortLessThanCI);
std::sort(result.begin(), result.end(), naturalSortLessThanCI);
return result;
}