mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Eliminate qsort, use std::sort
This commit is contained in:
parent
75c2618eff
commit
97377cdcf4
@ -41,7 +41,7 @@ void VolumeComicsModel::load(const QString &json)
|
||||
_data.push_back(l);
|
||||
}
|
||||
|
||||
qSort(_data.begin(), _data.end(), lessThan);
|
||||
std::sort(_data.begin(), _data.end(), lessThan);
|
||||
}
|
||||
|
||||
/*void VolumeComicsModel::load(const QStringList &jsonList)
|
||||
|
@ -52,7 +52,7 @@ void FolderContentControllerV2::serviceContent(const int &library, const qulongl
|
||||
QList<LibraryItem *> folderComics = DBHelper::getFolderComicsFromLibrary(library, folderId);
|
||||
|
||||
folderContent.append(folderComics);
|
||||
qSort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
|
||||
std::sort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
|
||||
|
||||
folderComics.clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user