Deprecated qSort => std::sort

This change gets rid of some GCC's -Wdeprecated-declarations warnings.
This commit is contained in:
Igor Kushnir
2021-02-05 17:38:08 +02:00
committed by Felix Kauselmann
parent 70287994dd
commit 3c9ed6ef8f
6 changed files with 18 additions and 14 deletions

View File

@ -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;