mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -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
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user