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
@ -16,6 +16,8 @@
|
||||
|
||||
#include "QsLog.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using stefanfrings::HttpRequest;
|
||||
using stefanfrings::HttpResponse;
|
||||
using stefanfrings::HttpSession;
|
||||
@ -79,7 +81,7 @@ void FolderController::service(HttpRequest &request, HttpResponse &response)
|
||||
|
||||
folderContent.append(folderComics);
|
||||
|
||||
qSort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
|
||||
std::sort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
|
||||
folderComics.clear();
|
||||
|
||||
//qulonglong backId = DBHelper::getParentFromComicFolderId(libraryName,folderId);
|
||||
@ -265,7 +267,7 @@ void FolderController::service(HttpRequest &request, HttpResponse &response)
|
||||
if (index.length() > 1) {
|
||||
t.setCondition("alphaIndex", true);
|
||||
|
||||
qSort(index.begin(), index.end(), naturalSortLessThanCI);
|
||||
std::sort(index.begin(), index.end(), naturalSortLessThanCI);
|
||||
t.loop("index", index.length());
|
||||
int i = 0;
|
||||
int count = 0;
|
||||
|
Reference in New Issue
Block a user