mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -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
@ -17,6 +17,7 @@
|
||||
#include <QSettings>
|
||||
#include <QHeaderView>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <typeinfo>
|
||||
#include <thread>
|
||||
@ -2494,7 +2495,7 @@ QModelIndexList LibraryWindow::getSelectedComics()
|
||||
//avoid selection.count()==0 forcing selection in comicsView
|
||||
QModelIndexList selection = comicsViewsManager->comicsView->selectionModel()->selectedRows();
|
||||
QLOG_TRACE() << "selection count " << selection.length();
|
||||
qSort(selection.begin(), selection.end(), lessThanModelIndexRow);
|
||||
std::sort(selection.begin(), selection.end(), lessThanModelIndexRow);
|
||||
|
||||
if (selection.count() == 0) {
|
||||
comicsViewsManager->comicsView->selectIndex(0);
|
||||
|
Reference in New Issue
Block a user