mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Deprecated qSort => std::sort
This change gets rid of some GCC's -Wdeprecated-declarations warnings.
This commit is contained in:
committed by
Felix Kauselmann
parent
70287994dd
commit
3c9ed6ef8f
@ -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)
|
||||
|
Reference in New Issue
Block a user