mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -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
@ -948,7 +948,7 @@ void MainWindowViewer::openFolderFromPath(QString pathDir, QString atFileName)
|
||||
d.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);
|
||||
QStringList list = d.entryList();
|
||||
|
||||
qSort(list.begin(), list.end(), naturalSortLessThanCI);
|
||||
std::sort(list.begin(), list.end(), naturalSortLessThanCI);
|
||||
int i = 0;
|
||||
foreach (QString path, list) {
|
||||
if (path.endsWith(atFileName))
|
||||
@ -1560,8 +1560,7 @@ void MainWindowViewer::getSiblingComics(QString path, QString currentComic)
|
||||
#endif
|
||||
d.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);
|
||||
QStringList list = d.entryList();
|
||||
qSort(list.begin(), list.end(), naturalSortLessThanCI);
|
||||
//std::sort(list.begin(),list.end(),naturalSortLessThanCI);
|
||||
std::sort(list.begin(), list.end(), naturalSortLessThanCI);
|
||||
int index = list.indexOf(currentComic);
|
||||
if (index == -1) //comic not found
|
||||
{
|
||||
|
Reference in New Issue
Block a user