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

@ -12,6 +12,7 @@
#include <QSqlRecord>
#include <QSqlQuery>
#include <algorithm>
#include <limits>
#include "reading_list.h"
@ -166,7 +167,7 @@ QString DBHelper::getFolderName(qulonglong libraryId, qulonglong id)
QList<QString> DBHelper::getLibrariesNames()
{
QStringList names = getLibraries().getNames();
qSort(names.begin(), names.end(), naturalSortLessThanCI);
std::sort(names.begin(), names.end(), naturalSortLessThanCI);
return names;
}
QString DBHelper::getLibraryName(int id)